PHP Class Smalot\Magento\Cart\Cart

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

Public Methods

Method Description
create ( string $storeId = null ) : Smalot\Magento\ActionInterface Allows you to create an empty shopping cart.
getInfo ( integer $quoteId, string $store = null ) : Smalot\Magento\ActionInterface Allows you to retrieve full information about the shopping cart (quote).
getLicense ( integer $quoteId, string $store = null ) : Smalot\Magento\ActionInterface Allows you to retrieve the website license agreement for the quote according to the website (store).
getTotals ( integer $quoteId, string $store = null ) : Smalot\Magento\ActionInterface Allows you to retrieve total prices for a shopping cart (quote).
order ( integer $quoteId, string $store = null, array $agreements = null ) : Smalot\Magento\ActionInterface Allows you to create an order from a shopping cart (quote).

Method Details

create() public method

Allows you to create an empty shopping cart.
public create ( string $storeId = null ) : Smalot\Magento\ActionInterface
$storeId string
return Smalot\Magento\ActionInterface

getInfo() public method

Allows you to retrieve full information about the shopping cart (quote).
public getInfo ( integer $quoteId, string $store = null ) : Smalot\Magento\ActionInterface
$quoteId integer
$store string
return Smalot\Magento\ActionInterface

getLicense() public method

Allows you to retrieve the website license agreement for the quote according to the website (store).
public getLicense ( integer $quoteId, string $store = null ) : Smalot\Magento\ActionInterface
$quoteId integer
$store string
return Smalot\Magento\ActionInterface

getTotals() public method

Allows you to retrieve total prices for a shopping cart (quote).
public getTotals ( integer $quoteId, string $store = null ) : Smalot\Magento\ActionInterface
$quoteId integer
$store string
return Smalot\Magento\ActionInterface

order() public method

Before placing the order, you need to add the customer, customer address, shipping and payment methods.
public order ( integer $quoteId, string $store = null, array $agreements = null ) : Smalot\Magento\ActionInterface
$quoteId integer
$store string
$agreements array
return Smalot\Magento\ActionInterface