PHP Класс Smalot\Magento\Cart\Cart

Наследование: extends Smalot\Magento\MagentoModuleAbstract
Показать файл Открыть проект

Открытые методы

Метод Описание
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).

Описание методов

create() публичный Метод

Allows you to create an empty shopping cart.
public create ( string $storeId = null ) : Smalot\Magento\ActionInterface
$storeId string
Результат Smalot\Magento\ActionInterface

getInfo() публичный Метод

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
Результат Smalot\Magento\ActionInterface

getLicense() публичный Метод

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
Результат Smalot\Magento\ActionInterface

getTotals() публичный Метод

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
Результат Smalot\Magento\ActionInterface

order() публичный Метод

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
Результат Smalot\Magento\ActionInterface