News:

Looking for documentation? Take a look on our wiki

Main Menu

Clean cart products at logout

Started by acooper, May 28, 2019, 23:34:21 PM

Previous topic - Next topic

acooper

The connected user is placing the products in the cart, but when he logs out or closes the browser, is not cleaning the cart.

Jörgen

This is wanted behaviour.
Jörgen @ Kreativ Fotografi
Joomla 3.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)
This reflects current status when viewing old post.

acooper

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.

GJC Web Design

Look in the cart helper file  - the trigger to save the cart to the DB is there .. you need to comment this out
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

acooper


GJC Web Design

its not a setting -- its code

try in components\com_virtuemart\helpers\cart.php



GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation