PHP Class Smalot\Magento\Cart\CartCoupon

Inheritance: extends Smalot\Magento\MagentoModuleAbstract
Show file Open project: smalot/magento-client

Public Methods

Method Description
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).

Method Details

add() public method

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
return Smalot\Magento\ActionInterface

remove() public method

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
return Smalot\Magento\ActionInterface