Shopping Cart in Online Store: Overview of Methods
The shopping cart is a temporary storage area where customers add products and services they intend to purchase. In the cart, customers can adjust the quantity of items, remove unwanted products, and view the total cost of their purchase. When the customer completes the purchase, the cart is linked to the order.
This section gathers methods for working with cart items in created orders.
Quick navigation: all methods
Linking the Cart to Other Objects
Order. Specify the order to which the cart is linked. The list of orders can be obtained using the sale.order.list method.
Products. Add products to the cart by specifying their identifiers. You can obtain identifiers using the following methods:
- catalog.product.list — for simple products
- catalog.product.service.list — for services
- catalog.product.sku.list — for parent products of items with variations
- catalog.product.offer.list — for variations of products
Currency. Choose the currency in which the price is specified. The list of currencies can be obtained using the crm.currency.list method.
Unit of Measurement. If you are adding a product to the cart that is not yet on the site, specify the code and name of the unit of measurement. This data can be obtained from the list of units of measurement using the catalog.measure.list method.
Linking Cart Item to Payment. Use the sale.paymentitembasket.* methods to specify which cart items have been paid for.
Shipment Table Part. Use the sale.shipmentitem.* methods to specify which cart items to ship.
Overview of Methods
Scope:
saleWho can perform the methods: depending on the method
|
Method |
Description |
|
Adds an item to the cart of an existing order |
|
|
Modifies a cart item in an existing order |
|
|
Retrieves information about a cart item in an order |
|
|
Returns a set of cart items based on a filter |
|
|
Removes a cart item from an order |
|
|
Returns available fields of a cart item |
|
|
Adds an item with a product or service from the catalog module to the cart of an existing order |
|
|
Modifies a catalog product in an existing order |
|
|
Returns available fields of a catalog product in the cart |