- Posts: 176
- Thank you received: 5
Mass action every other week?
10 years 8 months ago #227895
by dustinjc
Mass action every other week? was created by dustinjc
-- HikaShop version -- : 2.6.1
-- Joomla version -- : 3.4.8
-- PHP version -- : 5.5.29
Is it possible to have a mass action trigger every other week? We have a custom payment method called "Payroll Deduction" and need to generate a report that sends totals to our HR department to be processed each pay period -- which is every 2 weeks.
-- Joomla version -- : 3.4.8
-- PHP version -- : 5.5.29
Is it possible to have a mass action trigger every other week? We have a custom payment method called "Payroll Deduction" and need to generate a report that sends totals to our HR department to be processed each pay period -- which is every 2 weeks.
Please Log in or Create an account to join the conversation.
10 years 7 months ago #227900
by Xavier
Replied by Xavier on topic Mass action every other week?
Hi,
No there is not such possibility by default, only every weeks is possible.
But thanks to custom code that could be possible.
Here is the developer documentation about the mass actions:
www.hikashop.com/support/documentation/s...s-action-plugin.html
No there is not such possibility by default, only every weeks is possible.
But thanks to custom code that could be possible.
Here is the developer documentation about the mass actions:
www.hikashop.com/support/documentation/s...s-action-plugin.html
Please Log in or Create an account to join the conversation.
10 years 7 months ago #228935
by dustinjc
Replied by dustinjc on topic Mass action every other week?
Thank you for the info. I have one other question regarding this. We have a few mass actions that occur weekly. I understand how to change the day and time that these occur (in phpmyadmin). However, is there any way to have one weekly mass action occur on Weds and a different mass action occur on Friday?
Please Log in or Create an account to join the conversation.
10 years 7 months ago #228936
by nicolas
Replied by nicolas on topic Mass action every other week?
Hi,
There is no system to do that for now.
There is no system to do that for now.
Please Log in or Create an account to join the conversation.
10 years 7 months ago #228960
by dustinjc
Replied by dustinjc on topic Mass action every other week?
Could it be done with a custom code like in your previous answer about every other week? Alternatively, could a cron job that I set at the server level trigger a mass action?
Please Log in or Create an account to join the conversation.
10 years 7 months ago #228969
by Xavier
Replied by Xavier on topic Mass action every other week?
Hi,
Yes that could potentially be done via some custom code. Creating a new mass action plugin which is adding specific triggers.
In this plugin, once the weekly trigger is called, do the desired checks and call the new triggers based on the data.
For example this plugin must add triggers like "every weds" and "every friday". And has a main function based on the trigger "onHikashopCronTriggerDays". That way it will be called every days, and there you can do the checks and if the day is Wednesday so call the trigger "every weds", if friday call "every friday" else, return false.
Then create two other mass actions, one based on the "every weds" trigger and the other one on "every friday" with the desired actions.
Yes that could potentially be done via some custom code. Creating a new mass action plugin which is adding specific triggers.
In this plugin, once the weekly trigger is called, do the desired checks and call the new triggers based on the data.
For example this plugin must add triggers like "every weds" and "every friday". And has a main function based on the trigger "onHikashopCronTriggerDays". That way it will be called every days, and there you can do the checks and if the day is Wednesday so call the trigger "every weds", if friday call "every friday" else, return false.
Then create two other mass actions, one based on the "every weds" trigger and the other one on "every friday" with the desired actions.
Please Log in or Create an account to join the conversation.
10 years 7 months ago #229278
by dustinjc
Replied by dustinjc on topic Mass action every other week?
Is this something you would be willing to develop? If so, could you provide an estimate for the work?
Please Log in or Create an account to join the conversation.
10 years 7 months ago #229281
by Xavier
Replied by Xavier on topic Mass action every other week?
Hi,
We don't do developments for the forum support.
But what can be done is to post a request in the commercial jobs section of this forum or ask to one of our partner for this development.
We don't do developments for the forum support.
But what can be done is to post a request in the commercial jobs section of this forum or ask to one of our partner for this development.
Please Log in or Create an account to join the conversation.
Time to create page: 0.174 seconds