capabilities.work

Storefront Adjust Cart Item Quantity

A 2-step recipe with Swell. We can help you get access.

Recipe · 2 steps

Storefront Adjust Cart Item Quantity

with Swell

Get the cart, then change a line item's quantity.

  1. Retrieve the current session cart and its line items.
  2. Update the specified cart line item to the new quantity.
What you'll need to have ready
  • publicKey: Public storefront key, prefixed with pk_.
  • itemId: The cart line item id to adjust.
  • quantity: The new quantity for the line item.
For your developer

Arazzo workflow swell-io:storefront-adjust-cart-item-quantity, 2 operations: frontendGetCart → frontendUpdateCartItem. Specs on APIs.io.