Mass action every other week?

  • Posts: 176
  • Thank you received: 5
  • Hikashop Business
8 years 9 months ago #227895

-- 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.

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

  • Posts: 13201
  • Thank you received: 2322
8 years 9 months ago #227900

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

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

  • Posts: 176
  • Thank you received: 5
  • Hikashop Business
8 years 9 months ago #228935

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.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
8 years 9 months ago #228936

Hi,

There is no system to do that for now.

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

  • Posts: 176
  • Thank you received: 5
  • Hikashop Business
8 years 9 months ago #228960

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.

  • Posts: 13201
  • Thank you received: 2322
8 years 9 months ago #228969

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.

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

  • Posts: 176
  • Thank you received: 5
  • Hikashop Business
8 years 9 months ago #229278

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.

  • Posts: 13201
  • Thank you received: 2322
8 years 9 months ago #229281

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.

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

Time to create page: 0.077 seconds
Powered by Kunena Forum