News:

Looking for documentation? Take a look on our wiki

Main Menu

Virtuemart Cron product cart

Started by 15pablo8400, November 17, 2016, 01:23:19 AM

Previous topic - Next topic

15pablo8400

Hi,
i'm using jm 3.6.2 and vm 3.0.14.
Is there a way to create a cron job that remove vm cart product after tot minute inserted by user?

Scenario: A user navigate into my site, after 5 minute he close and go out. Next time, the user can log into a site and he will find all product inserted in cart before.
Maybe some product are finished or not available... so, cron will delete this "problem".

Problem is that cart product are stored in session and from cron job there isn't a way to call virtuemart cart method.

Can anyone help me?
Also with alternative solution.

Thanks

jenkinhill

Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

15pablo8400

Thanks for reply. Yes i will update site joomla version as soon... now site are online but not index because we are also in pre pubblication.
About virtuemart cart i have an old version 3.0.14. We personalize many virtuemart file and function... now if i update, does virtuemart overwrite all file?


Inviato dal mio iPhone utilizzando Tapatalk

jenkinhill

When "personalising" VM you should use the correct procedure of template/css overrides, and for any required core changes these should have been done via a plugin.   If you followed the correct process then updating will not lose any data or any of your "changes", although there coupld be possible template issues, as described in the last paragraph of the news release, https://virtuemart.net/news/latest-news/477-release-of-3-0-18-connecting-the-loose-ends
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

GJC Web Design

as part of this extension: http://www.gjcwebdesign.com/vm2-product-lock.html

I have a plugin that runs off a cron to empty any cart sessions that don't belong to a current valid session

this I guess could be adapted -- email me if interested
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