Interface ProductWriteServiceInterface
Interface ProductWriteServiceInterface
Direct known implementers
Package: Product\Interfaces
Category: System
Located at Services/Core/Product/Interfaces/ProductWriteServiceInterface.inc.php
Category: System
Located at Services/Core/Product/Interfaces/ProductWriteServiceInterface.inc.php
Methods summary
public
updateProduct( StoredProductInterface $product )
: ProductWriteServiceInterface
Update Product
public
duplicateProduct( IdType $productId, IdType $targetCategoryId, BoolType $duplicateAttributes, BoolType $duplicateSpecials, BoolType $duplicateCrossSelling )
: integer
Duplicate Product
public
linkProduct( IdType $productId, IdType $targetCategoryId )
: ProductWriteServiceInterface
Link Product
public
unlinkProduct( IdType $productId, IdCollection $categoryIds )
: ProductWriteServiceInterface|ProductWriteServiceInterface
Unlink a product. Deletes the product if all category links are removed.
public
changeProductLink( IdType $productId, IdType $currentCategoryId, IdType $newCategoryId )
: ProductWriteServiceInterface
Changes the category link of a product.
public
deleteProductLink( IdType $productId, IdType $categoryId )
: ProductWriteServiceInterface
Removes a category link from a product by the given product id.
public
deleteProductLinks( IdType $productId )
: ProductWriteServiceInterface
Removes all category links from a product by given product ID.
public
importProductImageFile( ExistingFile $sourceFile, FilenameStringType $preferredFilename )
: string
Import Product Image File
public
renameProductImage( FilenameStringType $oldName, FilenameStringType $newName )
: ProductWriteServiceInterface
Rename Product Image File
public
deleteProductImage( FilenameStringType $filename )
: ProductWriteServiceInterface
Delete Product Image
public
processProductImage( FilenameStringType $productImage )
: ProductWriteService
Processes an image for the front end.