### Author Topic: [CONFIRMED] Coupon System different total amount depending how the product is  (Read 3761 times)

#### aravot

• Peter
• Moderator
• Sr. Member
• Posts: 2874
##### [CONFIRMED] Coupon System different total amount depending how the product is
« on: September 12, 2007, 06:40:58 am »
Joomla 1.0.12
VM 1.1 r935

Testing Coupon System I got different total amounts depending how the product was added to cart.

Created a coupon value \$15 (15 off from total)

Created a product worth \$10, added the product to cart, applied the coupon got the following message.

Info: The Value of the Coupon is greater than the current Order Total, so the Coupon Value was temporarily set to \$10.00

Cart total is set to 0 zero up until now all is OK.

Now updating quantity of the product to 2 from within the cart sets the total cart value to \$5.00 which is correct 10*2=20 - 15 = 5

However instead of updating the product quantity from within the cart going back to product list and adding the same product once more sets the cart total to \$10 which is incorrect.

Now the fun part emptying the cart and adding the same product back to the cart sets the cart total to -5 mathematically this is correct 10-15=-5 but for business it's a big No.

#### aravot

• Peter
• Moderator
• Sr. Member
• Posts: 2874
##### Re: Coupon System different total amount depending how the product is added to c
« Reply #1 on: October 01, 2007, 23:43:31 pm »
Could one of Q&T members check this.

#### Anthony C.

• Jr. Member
• Posts: 286
##### Re: Coupon System different total amount depending how the product is added to c
« Reply #2 on: October 02, 2007, 01:09:50 am »
Quote
Now the fun part emptying the cart and adding the same product back to the cart sets the cart total to -5 mathematically this is correct 10-15=-5 but for business it's a big No.

Confirmed!

Database Version: 5.0.45-log
PHP Version: 5.2.4
Web Server: Apache/1.3.33 (Unix)

Joomla version: Joomla! 1.0.13 Stable [ Sunglow ] 21 July 2007 16:00 UTC
VM version: 1.1 revision 960