VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: acooper on May 28, 2019, 23:34:21 PM

Title: Clean cart products at logout
Post by: acooper on May 28, 2019, 23:34:21 PM
The connected user is placing the products in the cart, but when he logs out or closes the browser, is not cleaning the cart.
Title: Re: Clean cart products at logout
Post by: Jörgen on May 29, 2019, 05:36:02 AM
This is wanted behaviour.
Jörgen @ Kreativ Fotografi
Title: Re: Clean cart products at logout
Post by: acooper on May 29, 2019, 06:44:24 AM
I need to clean the cart.
Shop is for product rentals.
Have a calendar to check product availability.
If he puts it in the cart and comes back another day, I will not know product if it is available.
I only check availability for rent when it enters the product.
Title: Re: Clean cart products at logout
Post by: GJC Web Design on May 29, 2019, 09:08:53 AM
Look in the cart helper file  - the trigger to save the cart to the DB is there .. you need to comment this out
Title: Re: Clean cart products at logout
Post by: acooper on May 30, 2019, 16:26:28 PM
I can not find this setting.
Title: Re: Clean cart products at logout
Post by: GJC Web Design on May 30, 2019, 17:10:35 PM
its not a setting -- its code

try in components\com_virtuemart\helpers\cart.php