Interface ProductWriteServiceInterface
category |
System |
---|---|
package |
Product |
subpackage |
Interfaces |
changeProductLink(\IdType $productId, \IdType $currentCategoryId, \IdType $newCategoryId) : \ProductWriteServiceInterface
createProduct(\ProductInterface $product) : integer
Creates a new product and returns the ID of it.
integer
The ID of the created product.
deleteProductById(\IdType $productId) : \ProductWriteServiceInterface
Deletes a specific product, depending on the provided product ID.
\ProductWriteServiceInterface
Same instance for chained method calls.
deleteProductImage(\FilenameStringType $filename) : \ProductWriteServiceInterface
Deletes a product image.
\ProductWriteServiceInterface
Same instance for chained method calls.
deleteProductLink(\IdType $productId, \IdType $categoryId) : \ProductWriteServiceInterface
deleteProductLinks(\IdType $productId) : \ProductWriteServiceInterface
duplicateProduct(\IdType $productId, \IdType $targetCategoryId, \BoolType $duplicateAttributes, \BoolType $duplicateSpecials, \BoolType $duplicateCrossSelling) : integer
Duplicates a product to a category.
integer
Returns the ID of the new product.
importProductImageFile(\ExistingFile $sourceFile, \FilenameStringType $preferredFilename) : string
Imports an image for the product.
string
The new filename.
linkProduct(\IdType $productId, \IdType $targetCategoryId) : \ProductWriteServiceInterface
Links a product to a category.
\ProductWriteServiceInterface
Same instance for chained method calls.
processProductImage(\FilenameStringType $productImage) : \ProductWriteService
\FilenameStringType
\ProductWriteService
Same instance for chained method calls.
renameProductImage(\FilenameStringType $oldName, \FilenameStringType $newName) : \ProductWriteServiceInterface
Renames a product image file.
\ProductWriteServiceInterface
Same instance for chained method calls.
unlinkProduct(\IdType $productId, \IdCollection $categoryIds) : \ProductWriteServiceInterface|$this
Deletes the product if all category links are removed.
\ProductWriteServiceInterface|$this
Same instance for chained method calls.
updateProduct(\StoredProductInterface $product) : \ProductWriteServiceInterface
Updates a stored product.
\ProductWriteServiceInterface
Same instance for chained method calls.