PHP Класс Smalot\Magento\Cart\CartCoupon

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

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

Метод Описание
add ( integer $quoteId, string $couponCode, string $store = null ) : Smalot\Magento\ActionInterface Allows you to add a coupon code for a shopping cart (quote).
remove ( integer $quoteId, string $store = null ) : Smalot\Magento\ActionInterface Allows you to remove a coupon code from a shopping cart (quote).

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

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

The shopping cart must not be empty.
public add ( integer $quoteId, string $couponCode, string $store = null ) : Smalot\Magento\ActionInterface
$quoteId integer
$couponCode string
$store string
Результат Smalot\Magento\ActionInterface

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

Allows you to remove a coupon code from a shopping cart (quote).
public remove ( integer $quoteId, string $store = null ) : Smalot\Magento\ActionInterface
$quoteId integer
$store string
Результат Smalot\Magento\ActionInterface