VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: c4ris on June 03, 2013, 21:37:38 PM

Title: Cart product key lost?
Post by: c4ris on June 03, 2013, 21:37:38 PM
Hi, I think I found a pretty big bug. My site is using VM 2.0.20b.

Steps to reproduce:

1. Add to cart any product with a custom field (mine has a textinput).
2. Proceed to checkout like normal.
3. At the final checkout page before confirming the order, choose to continue shopping instead.
4. Go back to cart.
5. Observe: Custom field no longer shows in cart details.

When I played with debugging, I noticed that $cart->products changes the array key and that's what breaks everything. Instead of having a key like "9::12,;1", the key becomes "0" as if the key is lost somewhere.
Title: Re: Cart product key lost?
Post by: Milbo on June 04, 2013, 04:05:30 AM
I checked with textinput with the latest version 2.0.21c, seems fixed.