How can i Update Custom Pricing on “Add to Cart” via Shopify Frontend Cart API

I am currently developing a Shopify app that enables store owners to create custom product packages (e.g., “Buy 2 items and get a discounted price”). Instead of the customer manually selecting a quantity, the frontend displays these predefined package options set by the store owner.

On the frontend, when a customer selects a bundle option, I use Shopify’s Cart API (/cart/add.js) to add the product to the cart with the specified quantity. However, I’ve encountered a challenge: while I can successfully send the quantity, I am unable to apply a custom price to the line item through the standard Cart API.

I would like to know the correct approach to apply a custom discounted price to items added to the cart based on the bundle logic defined by the store owner
Im still stuck on this

1 Like