phpDocumentor

ProductWriteServiceInterface

Interface ProductWriteServiceInterface

Tags
category

System

subpackage

Interfaces

Table of Contents

changeProductLink()  : ProductWriteServiceInterface
Changes the category link of a product.
createProduct()  : int
Create Product
deleteProductById()  : ProductWriteServiceInterface
Delete Product
deleteProductImage()  : ProductWriteServiceInterface
Delete Product Image
deleteProductLink()  : ProductWriteServiceInterface
Removes a category link from a product by the given product id.
deleteProductLinks()  : ProductWriteServiceInterface
Removes all category links from a product by given product ID.
duplicateProduct()  : int
Duplicate Product
importProductImageFile()  : string
Import Product Image File
linkProduct()  : ProductWriteServiceInterface
Link Product
processProductImage()  : ProductWriteService
Processes an image for the front end.
renameProductImage()  : ProductWriteServiceInterface
Rename Product Image File
unlinkProduct()  : ProductWriteServiceInterface|$this
Unlink a product.
updateProduct()  : ProductWriteServiceInterface
Update Product

Methods

Changes the category link of a product.

public changeProductLink(IdType $productId, IdType $currentCategoryId, IdType $newCategoryId) : ProductWriteServiceInterface
Parameters
$productId : IdType

The product ID of the product to move.

$currentCategoryId : IdType

Old category ID of the product.

$newCategoryId : IdType

New category ID of the product.

Return values
ProductWriteServiceInterface

Same instance for chained method calls.

duplicateProduct()

Duplicate Product

public duplicateProduct(IdType $productId, IdType $targetCategoryId, BoolType $duplicateAttributes, BoolType $duplicateSpecials, BoolType $duplicateCrossSelling) : int

Duplicates a product to a category.

Parameters
$productId : IdType

The product ID of the product to duplicate.

$targetCategoryId : IdType

The target category ID of the product to be duplicated to.s

$duplicateAttributes : BoolType

Should the attributes be duplicated also?

$duplicateSpecials : BoolType

Should the specials be duplicated also?

$duplicateCrossSelling : BoolType

Should cross selling be duplicated also?

Return values
int

Returns the ID of the new product.

Search results