Auto cancel order plugin only checks once an hour

  • Posts: 5
  • Thank you received: 0
8 years 11 months ago #224261

-- url of the page with the problem -- : www.mfvr.nl
-- HikaShop version -- : 2.6.0
-- Joomla version -- : 3.4.6
-- PHP version -- : 5.4.36
-- Browser(s) name and version -- : Chrome (latest)

Hi all, great fan of HikaShop, keep up the good work!

I have a question. I recently installed and enabled the Auto cancel order plugin, set the timer on 600 (check every 10 minutes), and added a cron job (first with the built-in option, later on my server).
I set the cron job for once every 5 minutes, and the cron gets called succesfully every 5 minutes.

However, when I check the logs, only once an hour it says 'Orders checked'. So I wonder, why does it not check every 10 minutes?

Can you assist? The reason I want it checked is that this site often has a large number of tickets which are enormously popular and I want the stock availability as much updated as possible.

Thanks in advance!
Jeff

Please Log in or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
8 years 11 months ago #224264

Hi,

Try changing the line:

if(!empty($plugin->params['last_cron_update']) && $plugin->params['last_cron_update']+3600>time()){
to:
if(!empty($plugin->params['last_cron_update']) && $plugin->params['last_cron_update']+$this->period>time()){
in the file plugins/hikashop/order_auto_cancel/order_auto_cancel.php and that should fix the problem.

Please Log in or Create an account to join the conversation.

Time to create page: 0.058 seconds
Powered by Kunena Forum