docs: document how to calculate shipping prices in storefront (#10748)

This commit is contained in:
Shahed Nasser
2024-12-27 09:22:35 +02:00
committed by GitHub
parent 91ebf6d61c
commit 65d0a300ce
6 changed files with 275 additions and 147 deletions
@@ -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 = [