Combining product discount codes on same collection

Hi, I have the following requirements for a feature

  1. Programmatically generate a code which allows users to have £10 off apparel in the store
  2. The code is generated via the Shopify api when a user completes an action on a different service.
  3. The code should be stackable. i.e. users can enter two codes and get £20 off
  4. The code can only be used for apparel (one collection) and not gift cards.

I have basically run into the following limitations:

  1. Order Discounts work best but cannot be restricted by collection
  2. Gift Cards could be an option but again cannot be restricted by collection
  3. Product Discounts can be restricted by collection but can not be stacked on a single collection

I have looked at some customisation options:

  1. Shopify Function (Checkout) - does not give access to discount codes programmatically
  2. Shopify Function (Discounts) - can only be used to generate a custom discount but will not override the default stacking limitations
  3. Shopify Function (Discount Allocation) - could work but involves replacing the default allocation engine which I would like to avoid.

Does anyone here know if there is some way to meet my requirements?

Thanks

Hi @naromalt - thanks for reaching out. Out of curiosity, is the scenario that they buy a single product, but could use two separate £10 off discount codes? If so, at the moment, you are correct that we don’t support product discounts stacking with product discounts for the same product.

More than happy to put a feature request through for you though - let me know if I’m understanding things correctly here too, happy to help out further if needed!