PHP Class Smalot\Magento\Cart\CartCoupon

Inheritance: extends Smalot\Magento\MagentoModuleAbstract
Afficher le fichier Open project: smalot/magento-client

Méthodes publiques

Méthode 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 méthode

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
Résultat Smalot\Magento\ActionInterface

remove() public méthode

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
Résultat Smalot\Magento\ActionInterface