VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: bitstomper on May 29, 2012, 07:59:08 AM

Title: where is cart price stored?
Post by: bitstomper on May 29, 2012, 07:59:08 AM
Hi,

Can anyone tell me where/how the cart price is stored?
So the final price after addition of custom fields in product_details.
Once the customers hits the add to cart button where does this price go?
VM used to store it in the session, but I can no longer find it there.

Thanks.
Title: Re: where is cart price stored?
Post by: bitstomper on May 29, 2012, 22:48:03 PM
Ok figured it out: it is still set in session but unlike VM 1 further down the track.
VM2 loads basic product details in the session at the product_details level, then dumps the rest after submitting the form to go to cart.
Cart data is dumped in session with the function: setCartIntoSession() in: components/com_vm/helpers/cart.php.
Prices however are not added here but are pulled via the calculation model: admin/components/com_vm/helpers/calculationh.php.

Hope this helps anyone.