PHP Class Smalot\Magento\Catalog\ProductCustomOption

Inheritance: extends Smalot\Magento\MagentoModuleAbstract
ファイルを表示 Open project: smalot/magento-client

Public Methods

Method Description
add ( string $productId, array $data, string $store = null ) : Smalot\Magento\ActionInterface Allows you to add a new custom option for a product.
getInfo ( string $optionId, string $store = null ) : Smalot\Magento\ActionInterface Allows you to retrieve full information about the custom option in a product.
getList ( string $productId, string $store = null ) : Smalot\Magento\ActionInterface Allows you to retrieve the list of custom options for a specific product.
getTypes ( ) : Smalot\Magento\ActionInterface Allows you to retrieve the list of available custom option types.
remove ( string $optionId ) : Smalot\Magento\ActionInterface Allows you to remove a custom option from the product.
update ( string $optionId, array $data, string $store = null ) : Smalot\Magento\ActionInterface Allows you to update the required product custom option.

Method Details

add() public method

Allows you to add a new custom option for a product.
public add ( string $productId, array $data, string $store = null ) : Smalot\Magento\ActionInterface
$productId string
$data array
$store string
return Smalot\Magento\ActionInterface

getInfo() public method

Allows you to retrieve full information about the custom option in a product.
public getInfo ( string $optionId, string $store = null ) : Smalot\Magento\ActionInterface
$optionId string
$store string
return Smalot\Magento\ActionInterface

getList() public method

Allows you to retrieve the list of custom options for a specific product.
public getList ( string $productId, string $store = null ) : Smalot\Magento\ActionInterface
$productId string
$store string
return Smalot\Magento\ActionInterface

getTypes() public method

Allows you to retrieve the list of available custom option types.
public getTypes ( ) : Smalot\Magento\ActionInterface
return Smalot\Magento\ActionInterface

remove() public method

Allows you to remove a custom option from the product.
public remove ( string $optionId ) : Smalot\Magento\ActionInterface
$optionId string
return Smalot\Magento\ActionInterface

update() public method

Allows you to update the required product custom option.
public update ( string $optionId, array $data, string $store = null ) : Smalot\Magento\ActionInterface
$optionId string
$data array
$store string
return Smalot\Magento\ActionInterface