VirtueMart Forum

VirtueMart Dev/Coding Central: VM1 (old version) => Virtuemart 1.1 Development (Archiv) => Quality & Testing VirtueMart 1.1.x => Topic started by: aravot on September 12, 2007, 06:40:58 AM

Title: [CONFIRMED] Coupon System different total amount depending how the product is
Post by: aravot 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.

Title: Re: Coupon System different total amount depending how the product is added to c
Post by: aravot on October 01, 2007, 23:43:31 PM
Could one of Q&T members check this.
Title: Re: Coupon System different total amount depending how the product is added to c
Post by: Anthony C. on October 02, 2007, 01:09:50 AM
QuoteNow 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