[Skip to main content](#vessel-content)

#   Auto cancel order plugin only checks once an hour

##

- **[lafra002](/forum/user/37298-lafra002 "View lafra002's Profile")**
- [![lafra002's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/37298-lafra002 "View lafra002's Profile") Topic Author
- [ Offline](/forum/user/37298-lafra002)

Less More

- Posts: 5
- Thank you received: 0
-
-

10 years 10 months ago [\#224261](#224261) by [lafra002](/forum/user/37298-lafra002 "View lafra002's Profile")  *[Auto cancel order plugin only checks once an hour](/forum/30-integrations/881110-auto-cancel-order-plugin-only-checks-once-an-hour#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")* was created by *[lafra002](/forum/user/37298-lafra002 "View lafra002's Profile")*

-- url of the page with the problem -- : [ www.mfvr.nl](http://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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMwLWludGVncmF0aW9ucy84ODExMTAtYXV0by1jYW5jZWwtb3JkZXItcGx1Z2luLW9ubHktY2hlY2tzLW9uY2UtYW4taG91cj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14268
-
-

10 years 10 months ago [\#224264](#224264) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Auto cancel order plugin only checks once an hour](/forum/30-integrations/881110-auto-cancel-order-plugin-only-checks-once-an-hour#224264 "-- 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")*

Hi,

Try changing the line: Code:

if(!empty($plugin-&gt;params['last_cron_update']) &amp;&amp; $plugin-&gt;params['last_cron_update']+3600&gt;time()){

to:
Code:

if(!empty($plugin-&gt;params['last_cron_update']) &amp;&amp; $plugin-&gt;params['last_cron_update']+$this-&gt;period&gt;time()){

in the file plugins/hikashop/order_auto_cancel/order_auto_cancel.php and that should fix the problem.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMwLWludGVncmF0aW9ucy84ODExMTAtYXV0by1jYW5jZWwtb3JkZXItcGx1Z2luLW9ubHktY2hlY2tzLW9uY2UtYW4taG91cj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop- Install &amp; Update- Product &amp; Category Display- Content Creation- Sales and Orders- - Orders management- - Reports &amp; Statistics- Customers- Checkout- Payment Methods- Shipping Methods- Import &amp; Export (CSV, XLS…)- Specific Features- - Affilation- - Taxes- - Wishlist- - Vote- - Carousel &amp; Slider- - Mass Actions- - Filters &amp; Search- - Discount &amp; Coupon- - Feature Request- Integrations- Showcase- General Talk about HikaShop- Development- - HikaShop 3.0 Beta- Translation- Commercial Jobs HikaShop Components- HikaMarket- - Market: Feature requests- - Market: How to?- - Market: Bug Report- HikaSerial- - General talk about HikaSerial- - Serial: Bug Report- - Serial: How to?- - Support en Français de HikaSerial (French Support)- - HikaSubscription- HikaAuction- - Auction: Feature requests- - Auction: How to?- - Auction: Bug report Hikashop around the world- Support en Français (French Support)- Russian- - FAQ. Курс выживания с Hikashop. Частые вопросы и о- - Расширения Hikashop- - Наши сайты на Hikashop- 日本語版サポート(Japanese Support)- Thai- German Archives- Bug Report- How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.167 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)

[](#top)
