Have your say in Community Polls: What was/is your greatest motivation to start your own business?
Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Feature request: add ability to discount a specific cart line item

Feature request: add ability to discount a specific cart line item

DiscountNinja
Shopify Partner
104 0 67

Current situation

A product discount function can discount a specific variant using the merchandise.id.

 

Feature request

A cart can contain multiple cart line items with the same merchandise.id.
This can happen when the same variant is added with different cart line item properties or a different selling plan. The app developer may want to discount only one of those line items.
In the cart app developers can distinguish between different cart line items using the key and the selling plan id.

It would be helpful if app developers could:
- target discounts at line items based on the key / selling plan id
- or alternatively if the app developer could access the key / selling plan id in the input of the function and could target discounts based on the line number

Bart Coppens | Limoni Apps | Building apps for Shopify since 2016
Replies 0 (0)