Méthode |
Description |
|
assignProduct ( integer $categoryId, string $productId, string $position = null, string $identifierType = null ) : Smalot\Magento\ActionInterface |
Assign a product to the required category. |
|
create ( integer $parentId, array $categoryData, string $storeView = null ) : Smalot\Magento\ActionInterface |
Create a new category and return its ID. |
|
delete ( integer $categoryId ) : Smalot\Magento\ActionInterface |
Allows you to delete the required category. |
|
getAssignedProducts ( integer $categoryId ) : Smalot\Magento\ActionInterface |
Retrieve the list of products assigned to a required category. |
|
getInfo ( integer $categoryId, string $storeView = null, array $attributes = null ) : Smalot\Magento\ActionInterface |
Allows you to retrieve information about the required category. |
|
getLevel ( string $website, string $storeView = null, string $parentCategory = null ) : Smalot\Magento\ActionInterface |
Allows you to retrieve one level of categories by a website, a store view, or a parent category. |
|
getTree ( string $parentId = null, string $storeView = null ) : Smalot\Magento\ActionInterface |
Allows you to retrieve the hierarchical tree of categories. |
|
move ( integer $categoryId, integer $parentId, string $afterId = null ) : Smalot\Magento\ActionInterface |
Allows you to move the required category in the category tree. |
|
removeProduct ( integer $categoryId, string $productId, string $identifierType = null ) : Smalot\Magento\ActionInterface |
Allows you to remove the product assignment from the category. |
|
setCurrentStore ( string $storeView ) : Smalot\Magento\ActionInterface |
Allows you to set/get the current store view. |
|
update ( integer $categoryId, array $categoryData, string $storeView = null ) : Smalot\Magento\ActionInterface |
Update the required category. Note that you should specify only those parameters which you want to be updated. |
|
updateProduct ( integer $categoryId, string $productId, string $position = null, string $identifierType = null ) : Smalot\Magento\ActionInterface |
Allows you to update the product assigned to a category. The product position is updated. |
|