docs: document how to calculate shipping prices in storefront (#10748)
This commit is contained in:
@@ -16,10 +16,14 @@ In this document, you'll learn how to manage a cart's line items, including addi
|
||||
|
||||
## Add Product Variant to Cart
|
||||
|
||||
{/* TODO add section on checking variant quantity once it's fixed in v2. */}
|
||||
|
||||
To add a product variant to a cart, use the [Add Line Item API route](!api!/store#carts_postcartsidlineitems).
|
||||
|
||||
<Note title="Tip">
|
||||
|
||||
To retrieve a variant's available quantity and check if it's in stock, refer to [this guide](../../products/inventory/page.mdx).
|
||||
|
||||
</Note>
|
||||
|
||||
For example:
|
||||
|
||||
export const addHighlights = [
|
||||
|
||||
Reference in New Issue
Block a user