Add to Cart
add_to_cartFull Description
Use this when the user explicitly wants to add a specific product variant to their shopping cart, or update the quantity of an item already in the cart. Requires a confirmed product_id and variant_id obtained from search_products. Calling this with an existing variant_id replaces its quantity — it does not add on top of the existing quantity. Do not use to remove items entirely — use remove_from_cart instead. Do not use with quantity 0 or less — use remove_from_cart instead.
Parameters (3 required)
product_idstringThe Pine Labs product ID (e.g. PL_Sladorn_0001), obtained from search_products results
quantityintegerQuantity to set for this variant. Must be 1 or more. To remove an item entirely, use remove_from_cart.
variant_idstringThe Shopify variant ID for the specific size/colour, obtained from search_products results