PHP 클래스 Smalot\Magento\Cart\CartCoupon

상속: extends Smalot\Magento\MagentoModuleAbstract
파일 보기 프로젝트 열기: smalot/magento-client

공개 메소드들

메소드 설명
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