VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: zanardi on December 10, 2012, 12:25:49 PM

Title: Coupon discount still showing if order total drops down min amount
Post by: zanardi on December 10, 2012, 12:25:49 PM
Hello,
there seems to be a minor display bug on coupon discount, but I'd like to have other people confirming it.

1. Create e.g. a 10 € discount coupon which only applies for an order amount > 50 €
2. Put e.g. 5 x 15 € product into the cart (total order 75 €)
3. Apply your coupon and you'll get a 10 € discount
4. Update quantity from 5 products to 2 products (total order 30 €)

Result: the 10 € discount is still there

If you proceed to order confirmation, though, the total is recalculated.

Same thing happens if you remove completely your products from cart, browse the shop, and put other products in the cart for an order amount less than the required min amount.
Title: Re: Coupon discount still showing if order total drops down min amount
Post by: bytelord on December 10, 2012, 12:44:12 PM
Hello,

Which version?
Title: Re: Coupon discount still showing if order total drops down min amount
Post by: zanardi on December 12, 2012, 09:17:00 AM
Hello,
it's VirtueMart 2.0.14 on Joomla 2.5.8
Title: Re: Coupon discount still showing if order total drops down min amount
Post by: bytelord on December 12, 2012, 12:03:21 PM
Hmm ... yes

I remember that also ... i test it with 2.0.15c and is still there ...

So, when the order amount changed should trigger coupon also and remove it if does not fit the the amount ...

I am validating this for 2.0.14, 2.0.15

Regards
Title: Re: Coupon discount still showing if order total drops down min amount
Post by: Milbo on December 12, 2012, 15:49:26 PM
Quote from: zanardi on December 10, 2012, 12:25:49 PM
If you proceed to order confirmation, though, the total is recalculated.

Therefore for me a small cosmetical thing. I think that most time if this happens, people try to tricks the system. I think also this problem is already solved in vm2.1
Title: Re: Coupon discount still showing if order total drops down min amount
Post by: bytelord on December 12, 2012, 16:23:09 PM
Haven't solved in 2.1, but a recalculation should take place because the cart module also shows the discounted total