Welcome, Guest. Please login or register. 1 Hour 1 Day 1 Week 1 Month Forever Login with username, password and session length VirtueMart 1.1.8 - [SECURITY RELEASE] is available! Read more....   Advanced search Only this Topic 247036 Posts in 67505 Topics- by 258314 Members - Latest Member: Matej.iStraxx
VirtueMart ForumVirtueMart Dev/Coding CentralVirtuemart 1.1 Development (Archiv)Quality & Testing VirtueMart 1.1.x (Moderator: aravot)[CONFIRMED] Coupon System different total amount depending how the product is
Pages: [1]   Go Down
 Author Topic: [CONFIRMED] Coupon System different total amount depending how the product is  (Read 2315 times)
aravot
Peter
Moderator
Hero Member

Posts: 2921

 « on: September 11, 2007, 23:40:58 PM »

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.

 « Last Edit: October 01, 2007, 19:04:00 PM by aravot » Logged

aravot
Peter
Moderator
Hero Member

Posts: 2921

 « Reply #1 on: October 01, 2007, 16:43:31 PM »

Could one of Q&T members check this.
 Logged

Anthony C.
Sr. Member

Posts: 286

 « Reply #2 on: October 01, 2007, 18:09:50 PM »

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
 Logged
Pages: [1]   Go Up