Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

applying coupon discount AFTER global discounts

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 01-25-2008, 06:44 PM
 
bcddd214 bcddd214 is offline
 

Member
  
Join Date: Jun 2007
Posts: 29
 

Default applying coupon discount AFTER global discounts

We have set up global volume discounts based on cart total levels, and want to employ a coupon discount of 10%. Right now, the volume discount on orders of $300.00 or more is 10%. The coupon discount is also set at 10%.

Currently, the totals are calculated (on a $300 order) as:

SUBTOTAL: 300.00
Discount: 30.00
Discount Coupon: 30.00
DISCOUNTED SUBTOTAL: 240.00

what we want it to do is:

SUBTOTAL: 300.00
Discount: 30.00
Discount Coupon: 27.00 <--10% of 300 - 30
DISCOUNTED SUBTOTAL: 243.00

How can this be done in the code? any help would be greatly appreciated!
__________________
John

X-Cart Gold v4.1.6
Reply With Quote
  #2  
Old 01-27-2008, 05:37 PM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: applying coupon discount AFTER global discounts

Please don't double post...I have removed your second post on this topic.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 01-28-2008, 04:23 AM
  Holub's Avatar 
Holub Holub is offline
 

X-Adept
  
Join Date: Jan 2008
Posts: 432
 

Default Re: applying coupon discount AFTER global discounts

It's would be a violation because any type of discounts applying to product price at the same time, not to subtotal.
The most simple desicion without violation would be using discounts coupon with 9% not 10%. (i.e. you should decrese discount of coupons with percents of global discounts)

SUBTOTAL: 300.00
Discount: 30.00 (10%)
Discount Coupon: 27.00 (9%)
DISCOUNTED SUBTOTAL: 243.00
__________________
Regards,
Anthony Holub

X-Cart Skins Store
- twenty two different skins available;
- both 4.1.x and 4.2.x versions compatible;
- refresh you store now!

Smart menu X-Cart add-on
Featured Products Slide Show X-Cart add-on
"What's New?" FREE X-Cart add-on
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 07:26 AM.

   

 
X-Cart forums © 2001-2020