Cart API
The Site Theme SDK provides functions used to perform actions related to the cart.
Function | Description |
---|---|
Get Active Id | Gets the active cart ID. |
Clear | Clear the active cart. |
Add Item | Adds an item to the order in the cart. |
Buy Now Item | Adds an item to an order and immediately redirects to the checkout page (skipping the cart). |
Remove Item | Removes an item from the order in the cart. |
Update Item Quantity | Updates the quantity of an item in the order. |
Put Fulfillment | Replaces the fulfillment on the order. |
Attach Loyalty Reward | Attaches a loyalty reward to the order. |
Remove Loyalty Reward | Removes a loyalty reward from the order. |
Although the general terms order and cart can be used interchangeably, the SDK documentation preferentially uses the term order because an Order
is an object on the Cart resource.