What's new
Xen Factory

Register today to become a member! Once signed in, you'll be able to start purchasing our products, ask questions, request support and suggest new ideas!

Suggestion How Do Individual Coupons Work in the Shopping Cart?

VisEntities

Active Member
How would the shopping cart handle individual coupons for different resources? Would the buyer enter each coupon one by one, with each discount applying to the total price, or does it work differently?
 
Right now the cart only support one coupon to be input.
I have not investigated the usage of multiple coupons and would have to think how to handle it if a coupon is applicable to multiple resources from the cart and another to one of those resources.
If you have any ideas feel free to drop them.
 
I'm thinking something like this:

1738219113438.png


And you keep adding coupons in the coupon field for different resources, and the addon validates each one. It checks if the coupon exists and if it's valid for a resource in the cart. If yes, it updates the overview accordingly
 
No you didn't understand what I meant.

Let's say you have a first coupon with 5$ discount that is applicable to Volcano and Advanced backup.
They would both be decreased of 5$ or just one ?

Then you had another coupon that removes 5% from Volcano, it would be applied to the original price minus those 5$ above or not ?

Not sure of the best way.
 
I think it should work as a stacking-based system

For example, the user enters "VOLCANO_3" (a specific $3 discount for Volcano):
  • Volcano: $15 → $12
  • Advanced Backup: $10 (No change)

Then, they enter "GLOBAL_2" ($2 off each eligible product):
✅ If stacking is allowed:
  • Volcano: $12 → $10
  • Advanced Backup: $10 → $8
❌ If stacking is not allowed:
  • Volcano stays at $12 (best discount applied)
  • Advanced Backup: $10 → $8 (global discount applies)
 

From bespoke add-on development to complex integrations and specialized enhancements, we offer a range of XenForo development services designed to help your community thrive.

Start discussing your needs
Back
Top
Cart