Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
createEmptyCart () | |
createEmptyCartForCustomer ($customerId) | |
getCartForCustomer ($customerId) | |
assignCustomer ($cartId, $customerId, $storeId) | |
placeOrder ($cartId, PaymentInterface $paymentMethod=null) | |
Data Fields | |
const | METHOD_GUEST = 'guest' |
Interface CartManagementInterface @api
Definition at line 15 of file CartManagementInterface.php.
assignCustomer | ( | $cartId, | |
$customerId, | |||
$storeId | |||
) |
Assigns a specified customer to a specified shopping cart.
int | $cartId | The cart ID. |
int | $customerId | The customer ID. |
int | $storeId |
createEmptyCart | ( | ) |
Creates an empty cart and quote for a guest.
Implemented in QuoteManagement.
createEmptyCartForCustomer | ( | $customerId | ) |
Creates an empty cart and quote for a specified customer if customer does not have a cart yet.
int | $customerId | The customer ID. |
Implemented in QuoteManagement.
getCartForCustomer | ( | $customerId | ) |
Returns information for the cart for a specified customer.
int | $customerId | The customer ID. |
Implemented in QuoteManagement.
placeOrder | ( | $cartId, | |
PaymentInterface | $paymentMethod = null |
||
) |
Places an order for a specified cart.
int | $cartId | The cart ID. |
PaymentInterface | null | $paymentMethod |
Implemented in QuoteManagement.
const METHOD_GUEST = 'guest' |
Checkout types: Checkout as Guest
Definition at line 20 of file CartManagementInterface.php.