VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Coding Central => Topic started by: ydl on January 28, 2016, 11:53:38 AM

Title: getting current user cart
Post by: ydl on January 28, 2016, 11:53:38 AM
I am trying to get the current user cart in the:
calculationh.php and / or padded.php

The goal is to check the current price in the cart + last half year purchases and comper it to a value which is stored in the shopper / user data

I used the function:
    $cart = VirtueMartCart::getCart(false);

BUT the $cart->products is empty (while in the cart module it is not empty!)

any idea how to get the 'cart's products' list?