PHP Class Smalot\Magento\Cart\CartProduct

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

Public Methods

Method Description
add ( integer $quoteId, array $productsData, string $storeId = null ) : Smalot\Magento\ActionInterface Allows you to add one or more products to the shopping cart (quote).
getList ( integer $quoteId, string $store = null ) : Smalot\Magento\ActionInterface Allows you to retrieve the list of products in the shopping cart (quote).
moveToCustomerQuote ( integer $quoteId, array $productsData, string $store = null ) : Smalot\Magento\ActionInterface Allows you to move products from the current quote to a customer quote.
remove ( integer $quoteId, array $productsData, string $store = null ) : Smalot\Magento\ActionInterface Allows you to remove one or several products from a shopping cart (quote).
update ( integer $quoteId, array $productsData, string $store = null ) : Smalot\Magento\ActionInterface Allows you to update one or several products in the shopping cart (quote).

Method Details

add() public method

Allows you to add one or more products to the shopping cart (quote).
public add ( integer $quoteId, array $productsData, string $storeId = null ) : Smalot\Magento\ActionInterface
$quoteId integer
$productsData array
$storeId string
return Smalot\Magento\ActionInterface

getList() public method

Allows you to retrieve the list of products in the shopping cart (quote).
public getList ( integer $quoteId, string $store = null ) : Smalot\Magento\ActionInterface
$quoteId integer
$store string
return Smalot\Magento\ActionInterface

moveToCustomerQuote() public method

Allows you to move products from the current quote to a customer quote.
public moveToCustomerQuote ( integer $quoteId, array $productsData, string $store = null ) : Smalot\Magento\ActionInterface
$quoteId integer
$productsData array
$store string
return Smalot\Magento\ActionInterface

remove() public method

Allows you to remove one or several products from a shopping cart (quote).
public remove ( integer $quoteId, array $productsData, string $store = null ) : Smalot\Magento\ActionInterface
$quoteId integer
$productsData array
$store string
return Smalot\Magento\ActionInterface

update() public method

Allows you to update one or several products in the shopping cart (quote).
public update ( integer $quoteId, array $productsData, string $store = null ) : Smalot\Magento\ActionInterface
$quoteId integer
$productsData array
$store string
return Smalot\Magento\ActionInterface