VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: sscheidegger on January 10, 2012, 19:16:31 PM

Title: Automatic Selected Shipment Problem on Cart Update
Post by: sscheidegger on January 10, 2012, 19:16:31 PM
Hi all

I found a problem with updating the automatic selected shipment in the cart, when a product is removed from the cart. This is how I can reproduce it:

- I have two shipment rules: Rule One for virtual products (no weight) and Rule Two for real products (more than 1g weight)
- I add a virtual product to the cart
- I also add a real product to the cart
- The cart shows the correct shipment: Rule Two, as the total weight is more than 1g
- I remove the real product from the cart
- Now the cart should show Rule One as the total weight is 0g, but it still shows Rule Two!

Somehow when the cart is updated, it should also update the automatic selected shipment. Any ideas?