How to set timer to clear the cart? Some users leave product on the cart then get back on it after a few days. The problem is the product is out of stock and still order it. How can I set a time in clearing the cart maybe clear the cart after one day.
Thanks
Reduce Session Settings in Joomla Configuration/System. Also ensure Joomla cache is off.
My joomla cache is only 15minutes but still caching it the whole time. Kindly help me on this. I can't figure it out. Can I add some code on the cart?
[attachment cleanup by admin]
You need to find out exactly where it's being cached - I assume the session but you need to check..
in components/com_virtuemart/helpers/cart.php there are public functions
function removeCartFromSession()
and
function emptyCart()
and
function emptyCartValues($cartData)
maybe call one of these with a Cron Job etc...