Interface ProductWriteServiceInterface

Interface ProductWriteServiceInterface

Direct known implementers

ProductWriteService

Methods summary

public createProduct( ProductInterface $product ) : integer

Create Product

public updateProduct( StoredProductInterface $product ) : ProductWriteServiceInterface

Update Product

public deleteProductById( IdType $productId ) : ProductWriteServiceInterface

Delete 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 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.