News:

Support the VirtueMart project and become a member

Main Menu

where is cart price stored?

Started by bitstomper, May 29, 2012, 07:59:08 AM

Previous topic - Next topic

bitstomper

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.

bitstomper

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.