PHP Класс Smalot\Magento\Catalog\ProductCustomOption

Наследование: extends Smalot\Magento\MagentoModuleAbstract
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Описание методов

add() публичный Метод

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
Результат Smalot\Magento\ActionInterface

getInfo() публичный Метод

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
Результат Smalot\Magento\ActionInterface

getList() публичный Метод

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
Результат Smalot\Magento\ActionInterface

getTypes() публичный Метод

Allows you to retrieve the list of available custom option types.
public getTypes ( ) : Smalot\Magento\ActionInterface
Результат Smalot\Magento\ActionInterface

remove() публичный Метод

Allows you to remove a custom option from the product.
public remove ( string $optionId ) : Smalot\Magento\ActionInterface
$optionId string
Результат Smalot\Magento\ActionInterface

update() публичный Метод

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
Результат Smalot\Magento\ActionInterface