Plugins - Hikashop Orders Automatic Cancel Plugin not trigger everytime

  • Posts: 72
  • Thank you received: 1
8 years 1 month ago #252562

-- HikaShop version -- : 2.6.3
-- Joomla version -- : 3.6.2

hi,

i want order to be cancel if no payment is done within 48 hours

i had set Hikashop Orders Automatic Cancel Plugin setting


Period - 172800 (if not wrong this should cancel the order if more than 48 hours no status change)
Last update - 1476547204

i had set the cron job on the server to run twice a day.

wget -O /dev/null "http://mydomainname/index.php?option=com_hikashop&ctrl=cron" > /dev/null

from the report i can see the cron job is working. but only thing is that the plugin for orders automatic cancel is not trigger every time, cron job trigger.

******************************************************************************************************************************************************
******************** 2016-10-12 12:00 ********************
HikaShop Triggered at 2016-10-12 12:00

******************************************************************************************************************************************************
******************** 2016-10-13 00:00 ********************
HikaShop Triggered at 2016-10-13 00:00
---- Details ----
Rates successfully updated

******************************************************************************************************************************************************
******************** 2016-10-13 12:00 ********************
HikaShop Triggered at 2016-10-13 12:00

******************************************************************************************************************************************************
******************** 2016-10-14 00:00 ********************
HikaShop Triggered at 2016-10-14 00:00
---- Details ----
Orders checked
Rates successfully updated

******************************************************************************************************************************************************
******************** 2016-10-14 12:00 ********************
HikaShop Triggered at 2016-10-14 12:00

******************************************************************************************************************************************************
******************** 2016-10-15 00:00 ********************
HikaShop Triggered at 2016-10-15 00:00
---- Details ----
Rates successfully updated

******************************************************************************************************************************************************
******************** 2016-10-15 12:00 ********************
HikaShop Triggered at 2016-10-15 12:00

******************************************************************************************************************************************************
******************** 2016-10-16 00:00 ********************
HikaShop Triggered at 2016-10-16 00:00
---- Details ----
Orders checked
Rates successfully updated

Could it be some setting i need to set ?


thank you
Joe

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

  • Posts: 82867
  • Thank you received: 13373
  • MODERATOR
8 years 1 month ago #252592

Hi,

In the settings of the auto cancel orders plugin, you can configure the frequency of the plugin. If the frequency of the plugin is higher than the frequency of your cron, the plugin won't be triggered each time the cron run.

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

  • Posts: 72
  • Thank you received: 1
8 years 1 month ago #252599

hi,

thanks, so what i need to set that it will cancel orders that did not do payment within 48 hrs ?

everyday there is some orders that did not pay after 48 hours.

thank you

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

  • Posts: 12953
  • Thank you received: 1778
8 years 1 month ago #252633

Hello,

You'll need to make sure that the frequency of your cron and plugin aren't higher than 48h.

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

  • Posts: 72
  • Thank you received: 1
8 years 1 month ago #252656

so can i say that this plugin, once it trigger it will cancel all order status that still under create ?

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

  • Posts: 12953
  • Thank you received: 1778
8 years 1 month ago #252658

Hello,

It will cancel all orders that have an order status set to "Created" and which are older than 48h.

As Nicolas said, if you want your "Hikashop Orders Automatic Cancel" plugin to correctly cancel "created" orders every time the cron is launch, you'll have to set a lower plugin "Frequency" than the cron "Frequency".

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

  • Posts: 72
  • Thank you received: 1
8 years 1 month ago #252717

hi mohamed thelji, thanks for the reply.

if i set my cron job to trigger every 2 day @ 12am, & if day one 5 order created and day two another 5 order created. when day three reach, day one order should be cancel if status still is created. day four by right day two orders should be cancel but then cron job only trigger every 2 day. which had to wait till day five to get day 2 to cancel

how will i need to set if i want to check everyday for orders that are 48hrs old and status still created ?

thank you

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

  • Posts: 82867
  • Thank you received: 13373
  • MODERATOR
8 years 1 month ago #252756

Hi,

The plugin uses the same plugin for the frequency of the check and the time to check the orders.
So if you set 172800 in the period setting of the plugin, it will check every two days the orders and will cancel the orders older than 2 days.

If you want something else, you either need to modify the code of the plugin, or use a mass action to do that instead.

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

Time to create page: 0.060 seconds
Powered by Kunena Forum