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

#   Mass Action Documentation

##

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

Less More

- Posts: 21
- Thank you received: 0
-
-

11 years 4 months ago [\#203360](#203360) by [GunnarB](/forum/user/36435-gunnarb "View GunnarB's Profile")  *[Mass Action Documentation](/forum/44-mass-actions/877257-mass-action-documentation#203360 "I need more information on the trigger of the mass actions.  I have a mass actions that needs to run at the start of each month. How do I trigger it?  a) Is a cron job necessary to trigger the mass actions? (The documentation on mass action does not mention cron jobs. The documentation on cron jobs does not mention mass actions). b) When I set trigger to &quot;every months&quot;, when will it actually run? How do I ensure it does not run the current month, but only next month? c) Can I set a timed trigger, e.g. 10 p.m. on May 31st (an accuracy of about one hour +/- would be sufficient) d) Can I set a date validation, e.g. &quot;do not run before June 1st&quot; in case it is triggered to early?  Thanks for your help (and eventually updating the documentation in this regard).  Best Gunnar")* was created by *[GunnarB](/forum/user/36435-gunnarb "View GunnarB's Profile")*

I need more information on the trigger of the mass actions.

I have a mass actions that needs to run at the start of each month. How do I trigger it?

a) Is a cron job necessary to trigger the mass actions? (The documentation on mass action does not mention cron jobs. The documentation on cron jobs does not mention mass actions).
b) When I set trigger to "every months", when will it actually run? How do I ensure it does not run the current month, but only next month?
c) Can I set a timed trigger, e.g. 10 p.m. on May 31st (an accuracy of about one hour +/- would be sufficient)
d) Can I set a date validation, e.g. "do not run before June 1st" in case it is triggered to early?

Thanks for your help (and eventually updating the documentation in this regard).

Best
Gunnar

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQ0LW1hc3MtYWN0aW9ucy84NzcyNTctbWFzcy1hY3Rpb24tZG9jdW1lbnRhdGlvbj90bXBsPW1hcmtkb3du) 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")
- [ Away](/forum/user/63-nicolas)

Less More

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

11 years 4 months ago [\#203364](#203364) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Mass Action Documentation](/forum/44-mass-actions/877257-mass-action-documentation#203364 "I need more information on the trigger of the mass actions.  I have a mass actions that needs to run at the start of each month. How do I trigger it?  a) Is a cron job necessary to trigger the mass actions? (The documentation on mass action does not mention cron jobs. The documentation on cron jobs does not mention mass actions). b) When I set trigger to &quot;every months&quot;, when will it actually run? How do I ensure it does not run the current month, but only next month? c) Can I set a timed trigger, e.g. 10 p.m. on May 31st (an accuracy of about one hour +/- would be sufficient) d) Can I set a date validation, e.g. &quot;do not run before June 1st&quot; in case it is triggered to early?  Thanks for your help (and eventually updating the documentation in this regard).  Best Gunnar")*

Hi,

a) yes, the configuration of the cron is necessary if you want to use periodic triggers.

b) If the cron is configured, it will run once a month. In the hikashop_config table there is a namekey massaction_last_trigger_months which will contain a timestamp of the last time the mass actions for "every month" were triggered. Next trigger for them will be a month after that (actually 30 days).

c) There is no such system in place. It would require a custom plugin.

d) There is no such system in place. It would require a custom plugin.

I'll see with Xavier to improve the documentation on the mass actions and see if some of the things you're talking about could make sense in the general system of the mass actions.

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

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

Less More

- Posts: 21
- Thank you received: 0
-
-

11 years 4 months ago [\#203440](#203440) by [GunnarB](/forum/user/36435-gunnarb "View GunnarB's Profile")  Replied by *[GunnarB](/forum/user/36435-gunnarb "View GunnarB's Profile")* on topic *[Mass Action Documentation](/forum/44-mass-actions/877257-mass-action-documentation#203440 "I need more information on the trigger of the mass actions.  I have a mass actions that needs to run at the start of each month. How do I trigger it?  a) Is a cron job necessary to trigger the mass actions? (The documentation on mass action does not mention cron jobs. The documentation on cron jobs does not mention mass actions). b) When I set trigger to &quot;every months&quot;, when will it actually run? How do I ensure it does not run the current month, but only next month? c) Can I set a timed trigger, e.g. 10 p.m. on May 31st (an accuracy of about one hour +/- would be sufficient) d) Can I set a date validation, e.g. &quot;do not run before June 1st&quot; in case it is triggered to early?  Thanks for your help (and eventually updating the documentation in this regard).  Best Gunnar")*

Thanks for the quick and comprehensive answer.

As my hosting package does not include cron jobs, I could use your service (thank you for that option). That would run at least every hour, hence 24*7*30 = 5040 times instead of once, which would be a bit overkill.

c) and d) could be replaced by a dynamic date functionality, you may consider also:

Filter: product_sale_start &gt;= today (or now).

Currently this is a manually entered date.

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

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

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

11 years 4 months ago [\#203443](#203443) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Mass Action Documentation](/forum/44-mass-actions/877257-mass-action-documentation#203443 "I need more information on the trigger of the mass actions.  I have a mass actions that needs to run at the start of each month. How do I trigger it?  a) Is a cron job necessary to trigger the mass actions? (The documentation on mass action does not mention cron jobs. The documentation on cron jobs does not mention mass actions). b) When I set trigger to &quot;every months&quot;, when will it actually run? How do I ensure it does not run the current month, but only next month? c) Can I set a timed trigger, e.g. 10 p.m. on May 31st (an accuracy of about one hour +/- would be sufficient) d) Can I set a date validation, e.g. &quot;do not run before June 1st&quot; in case it is triggered to early?  Thanks for your help (and eventually updating the documentation in this regard).  Best Gunnar")*

Hi,

Regarding the cron per months, in the mass action settings you can set the trigger on "Months".
Then in the cron settings, you have to enter a value in minutes for the cron period, so in that field you can set "1440" to execute the cron every days.

This way it will be called 30 times instead of once. which is reasonable.

For c) and d) that feature we will see to add that on our Todo list ![;)](/media/kunena/emoticons/11.png ";)")
But at this time if you set the cron on everyday, so you can set a filter in the mass actions to restrict the date interval.
The value to use for this case is: {time}-86400 where "86400" is a value in seconds.

In order to call the cron at a specific hour, you can change the "cron_next" and "cron_last" values in the #__hikashop_config table via phpMyAdmin.

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

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

Less More

- Posts: 112
- Thank you received: 3
-
-

11 years 1 day ago [\#218400](#218400) by [tbroderick](/forum/user/36185-tbroderick "View tbroderick's Profile")  Replied by *[tbroderick](/forum/user/36185-tbroderick "View tbroderick's Profile")* on topic *[Mass Action Documentation](/forum/44-mass-actions/877257-mass-action-documentation#218400 "I need more information on the trigger of the mass actions.  I have a mass actions that needs to run at the start of each month. How do I trigger it?  a) Is a cron job necessary to trigger the mass actions? (The documentation on mass action does not mention cron jobs. The documentation on cron jobs does not mention mass actions). b) When I set trigger to &quot;every months&quot;, when will it actually run? How do I ensure it does not run the current month, but only next month? c) Can I set a timed trigger, e.g. 10 p.m. on May 31st (an accuracy of about one hour +/- would be sufficient) d) Can I set a date validation, e.g. &quot;do not run before June 1st&quot; in case it is triggered to early?  Thanks for your help (and eventually updating the documentation in this regard).  Best Gunnar")*

For the novices in the crowd, I did not understand that the triggers in Mass actions had to be connected to cron. In the documentation for HikaSHop cron, it says it only activates currency updates:

"For now only the automatic update of rates requires a Cron task. However, the cron task will be used more extensively in the future to provide features like notification of start of sales, orders status automatic changes, etc."

But, I need to have a daily report run automatically. Can you provide specific instructions for how to set this up? Hopefully, it does not involve your users to use PHP to make it work.

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

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

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

11 years 1 day ago [\#218428](#218428) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Mass Action Documentation](/forum/44-mass-actions/877257-mass-action-documentation#218428 "I need more information on the trigger of the mass actions.  I have a mass actions that needs to run at the start of each month. How do I trigger it?  a) Is a cron job necessary to trigger the mass actions? (The documentation on mass action does not mention cron jobs. The documentation on cron jobs does not mention mass actions). b) When I set trigger to &quot;every months&quot;, when will it actually run? How do I ensure it does not run the current month, but only next month? c) Can I set a timed trigger, e.g. 10 p.m. on May 31st (an accuracy of about one hour +/- would be sufficient) d) Can I set a date validation, e.g. &quot;do not run before June 1st&quot; in case it is triggered to early?  Thanks for your help (and eventually updating the documentation in this regard).  Best Gunnar")*

Hi,

In the mass actions, you can set trigger on every days directly.
If you set up the cron in Configuration &gt; Cron so the mass action will be triggered every days.

No need of PHP.

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

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

Less More

- Posts: 112
- Thank you received: 3
-
-

11 years 17 hours ago [\#218517](#218517) by [tbroderick](/forum/user/36185-tbroderick "View tbroderick's Profile")  Replied by *[tbroderick](/forum/user/36185-tbroderick "View tbroderick's Profile")* on topic *[Mass Action Documentation](/forum/44-mass-actions/877257-mass-action-documentation#218517 "I need more information on the trigger of the mass actions.  I have a mass actions that needs to run at the start of each month. How do I trigger it?  a) Is a cron job necessary to trigger the mass actions? (The documentation on mass action does not mention cron jobs. The documentation on cron jobs does not mention mass actions). b) When I set trigger to &quot;every months&quot;, when will it actually run? How do I ensure it does not run the current month, but only next month? c) Can I set a timed trigger, e.g. 10 p.m. on May 31st (an accuracy of about one hour +/- would be sufficient) d) Can I set a date validation, e.g. &quot;do not run before June 1st&quot; in case it is triggered to early?  Thanks for your help (and eventually updating the documentation in this regard).  Best Gunnar")*

I must be doing something wrong and I am also getting an error message. So, let me take you through step by step so you can figure out what I am doing wrong:

Mass Actions:
• I set the mass action to hourly for testing purposes. See mass actions.jpg

cron
• I have set cron to the quickest frequency which is every 15 minutes. When I save this setting, I get an error that I do not understand. See cron setup page 2.
• The first page I see when I go to your cron page is set up as shown in cron page 1.

Please let me know what I am doing wrong.

Tom

- [ ![Massactions.jpg](/forum/attachment/27273) ](/forum/attachment/27273 "Massactions.jpg") [ ](/forum/attachment/27273?download=1 "Massactions.jpg")
- [ ![cron&#95;page&#95;1.jpg](/forum/attachment/27274) ](/forum/attachment/27274 "cron&#95;page&#95;1.jpg") [ ](/forum/attachment/27274?download=1 "cron&#95;page&#95;1.jpg")
- [ ![cron&#95;setup&#95;page&#95;2.jpg](/forum/attachment/27275) ](/forum/attachment/27275 "...tup&#95;page&#95;2.jpg") [ ](/forum/attachment/27275?download=1 "...tup&#95;page&#95;2.jpg")

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

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

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

11 years 5 hours ago [\#218519](#218519) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Mass Action Documentation](/forum/44-mass-actions/877257-mass-action-documentation#218519 "I need more information on the trigger of the mass actions.  I have a mass actions that needs to run at the start of each month. How do I trigger it?  a) Is a cron job necessary to trigger the mass actions? (The documentation on mass action does not mention cron jobs. The documentation on cron jobs does not mention mass actions). b) When I set trigger to &quot;every months&quot;, when will it actually run? How do I ensure it does not run the current month, but only next month? c) Can I set a timed trigger, e.g. 10 p.m. on May 31st (an accuracy of about one hour +/- would be sufficient) d) Can I set a date validation, e.g. &quot;do not run before June 1st&quot; in case it is triggered to early?  Thanks for your help (and eventually updating the documentation in this regard).  Best Gunnar")*

Hi,

If the action is not launched, so this seems to be due to the cron error you have.

Is the url in the cron settings the one attached to your account on our website ?
[ hikashop.com/my-account/your-subscriptions.html](https://hikashop.com/my-account/your-subscriptions.html)

Please check if it is set in "http" or "https".
[ www.hikashop.com/support/support/documen...ashop-cron-task.html](http://www.hikashop.com/support/support/documentation/55-hikashop-cron-task.html)

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

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

Less More

- Posts: 112
- Thank you received: 3
-
-

10 years 11 months ago -  10 years 11 months ago [\#218637](#218637) by [tbroderick](/forum/user/36185-tbroderick "View tbroderick's Profile")  Replied by *[tbroderick](/forum/user/36185-tbroderick "View tbroderick's Profile")* on topic *[Mass Action Documentation](/forum/44-mass-actions/877257-mass-action-documentation#218637 "I need more information on the trigger of the mass actions.  I have a mass actions that needs to run at the start of each month. How do I trigger it?  a) Is a cron job necessary to trigger the mass actions? (The documentation on mass action does not mention cron jobs. The documentation on cron jobs does not mention mass actions). b) When I set trigger to &quot;every months&quot;, when will it actually run? How do I ensure it does not run the current month, but only next month? c) Can I set a timed trigger, e.g. 10 p.m. on May 31st (an accuracy of about one hour +/- would be sufficient) d) Can I set a date validation, e.g. &quot;do not run before June 1st&quot; in case it is triggered to early?  Thanks for your help (and eventually updating the documentation in this regard).  Best Gunnar")*

You are correct. The subscription in my Hikashop account shows as "http:" I have tried several times to change it to "https:". But, it always reverts back to "http:"

With that said, cron appears to be working now. However, when it triggers the Mass action that should be sending a CSV file, it sends the email notification and not the CSV file that should be included in the email. The CSV file is not created in the /tmp folder.

The action works correctly when I manually "Process" the action. I know the CSV file will not be generated or sent if the data is empty. But, there is data that should be sent in the CSV file. When the action is triggered manually, the CSV file is created in the /tmp folder and it is sent in the email notification.

Last edit: 10 years 11 months ago by [tbroderick](/forum/user/36185-tbroderick "View tbroderick's Profile"). Reason: added more info

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

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

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

10 years 11 months ago [\#218671](#218671) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Mass Action Documentation](/forum/44-mass-actions/877257-mass-action-documentation#218671 "I need more information on the trigger of the mass actions.  I have a mass actions that needs to run at the start of each month. How do I trigger it?  a) Is a cron job necessary to trigger the mass actions? (The documentation on mass action does not mention cron jobs. The documentation on cron jobs does not mention mass actions). b) When I set trigger to &quot;every months&quot;, when will it actually run? How do I ensure it does not run the current month, but only next month? c) Can I set a timed trigger, e.g. 10 p.m. on May 31st (an accuracy of about one hour +/- would be sufficient) d) Can I set a date validation, e.g. &quot;do not run before June 1st&quot; in case it is triggered to early?  Thanks for your help (and eventually updating the documentation in this regard).  Best Gunnar")*

Hi,

Do you have other mass actions which could be interacting with this one ?
I mean other that are triggered at the same time ?

If it is I just edited you massaction class in order to solve this issue.
Please do a test and tell me if that solve the issue.

The following user(s) said Thank You: [tbroderick](/forum/user/36185-tbroderick "View tbroderick's Profile")

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

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

Less More

- Posts: 112
- Thank you received: 3
-
-

10 years 11 months ago [\#218735](#218735) by [tbroderick](/forum/user/36185-tbroderick "View tbroderick's Profile")  Replied by *[tbroderick](/forum/user/36185-tbroderick "View tbroderick's Profile")* on topic *[Mass Action Documentation](/forum/44-mass-actions/877257-mass-action-documentation#218735 "I need more information on the trigger of the mass actions.  I have a mass actions that needs to run at the start of each month. How do I trigger it?  a) Is a cron job necessary to trigger the mass actions? (The documentation on mass action does not mention cron jobs. The documentation on cron jobs does not mention mass actions). b) When I set trigger to &quot;every months&quot;, when will it actually run? How do I ensure it does not run the current month, but only next month? c) Can I set a timed trigger, e.g. 10 p.m. on May 31st (an accuracy of about one hour +/- would be sufficient) d) Can I set a date validation, e.g. &quot;do not run before June 1st&quot; in case it is triggered to early?  Thanks for your help (and eventually updating the documentation in this regard).  Best Gunnar")*

I have several I would like to run. But, no, this is the only action running while I test the process. How do I modify my Mass action class?

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

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

Less More

- Posts: 112
- Thank you received: 3
-
-

10 years 11 months ago [\#218743](#218743) by [tbroderick](/forum/user/36185-tbroderick "View tbroderick's Profile")  Replied by *[tbroderick](/forum/user/36185-tbroderick "View tbroderick's Profile")* on topic *[Mass Action Documentation](/forum/44-mass-actions/877257-mass-action-documentation#218743 "I need more information on the trigger of the mass actions.  I have a mass actions that needs to run at the start of each month. How do I trigger it?  a) Is a cron job necessary to trigger the mass actions? (The documentation on mass action does not mention cron jobs. The documentation on cron jobs does not mention mass actions). b) When I set trigger to &quot;every months&quot;, when will it actually run? How do I ensure it does not run the current month, but only next month? c) Can I set a timed trigger, e.g. 10 p.m. on May 31st (an accuracy of about one hour +/- would be sufficient) d) Can I set a date validation, e.g. &quot;do not run before June 1st&quot; in case it is triggered to early?  Thanks for your help (and eventually updating the documentation in this regard).  Best Gunnar")*

No, while the action is triggered and an email is sent saying the css file was sent, the css file is not created and is not sent with the email. This is when cron is used to trigger the task. When the task is activated manually, the entire process works properly and the css file is sent with the email.

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

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

Less More

- Posts: 112
- Thank you received: 3
-
-

10 years 11 months ago [\#218781](#218781) by [tbroderick](/forum/user/36185-tbroderick "View tbroderick's Profile")  Replied by *[tbroderick](/forum/user/36185-tbroderick "View tbroderick's Profile")* on topic *[Mass Action Documentation](/forum/44-mass-actions/877257-mass-action-documentation#218781 "I need more information on the trigger of the mass actions.  I have a mass actions that needs to run at the start of each month. How do I trigger it?  a) Is a cron job necessary to trigger the mass actions? (The documentation on mass action does not mention cron jobs. The documentation on cron jobs does not mention mass actions). b) When I set trigger to &quot;every months&quot;, when will it actually run? How do I ensure it does not run the current month, but only next month? c) Can I set a timed trigger, e.g. 10 p.m. on May 31st (an accuracy of about one hour +/- would be sufficient) d) Can I set a date validation, e.g. &quot;do not run before June 1st&quot; in case it is triggered to early?  Thanks for your help (and eventually updating the documentation in this regard).  Best Gunnar")*

When Cron is used, the CSV file is not sent when the Mass actions are called.

While the action is triggered and an email is sent saying the css file was sent, the css file is not created and is not sent with the email. This is when cron is used to trigger the task. When the task is activated manually, the entire process works properly and the css file is sent with the email.

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

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

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

10 years 11 months ago [\#218811](#218811) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Mass Action Documentation](/forum/44-mass-actions/877257-mass-action-documentation#218811 "I need more information on the trigger of the mass actions.  I have a mass actions that needs to run at the start of each month. How do I trigger it?  a) Is a cron job necessary to trigger the mass actions? (The documentation on mass action does not mention cron jobs. The documentation on cron jobs does not mention mass actions). b) When I set trigger to &quot;every months&quot;, when will it actually run? How do I ensure it does not run the current month, but only next month? c) Can I set a timed trigger, e.g. 10 p.m. on May 31st (an accuracy of about one hour +/- would be sufficient) d) Can I set a date validation, e.g. &quot;do not run before June 1st&quot; in case it is triggered to early?  Thanks for your help (and eventually updating the documentation in this regard).  Best Gunnar")*

Hi,

Is that issue happening with the "Export a csv file" action too or only with the custom action "custom_csv_export" ?
I have added a debug in the custom action, so this will write content in the file "/tmp/dbg.txt" to help me to debug.

Could you try too to change the value of the option "embed_files" in Configuration &gt; Main &gt; Emails ?

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

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

Less More

- Posts: 112
- Thank you received: 3
-
-

10 years 11 months ago [\#218870](#218870) by [tbroderick](/forum/user/36185-tbroderick "View tbroderick's Profile")  Replied by *[tbroderick](/forum/user/36185-tbroderick "View tbroderick's Profile")* on topic *[Mass Action Documentation](/forum/44-mass-actions/877257-mass-action-documentation#218870 "I need more information on the trigger of the mass actions.  I have a mass actions that needs to run at the start of each month. How do I trigger it?  a) Is a cron job necessary to trigger the mass actions? (The documentation on mass action does not mention cron jobs. The documentation on cron jobs does not mention mass actions). b) When I set trigger to &quot;every months&quot;, when will it actually run? How do I ensure it does not run the current month, but only next month? c) Can I set a timed trigger, e.g. 10 p.m. on May 31st (an accuracy of about one hour +/- would be sufficient) d) Can I set a date validation, e.g. &quot;do not run before June 1st&quot; in case it is triggered to early?  Thanks for your help (and eventually updating the documentation in this regard).  Best Gunnar")*

I thought you might have hit the answer. The "Embed Attachments" was turned off. I turned it to "yes". But, the css file did not generate or get sent in the email. When it was set to "no", it did not send a link to the file either. At the moment, I have all of the email settings set to "yes" as shown here: [ www.dropbox.com/s/wr9vquc071bjoul/Screen...%2010.06.42.jpg?dl=0](https://www.dropbox.com/s/wr9vquc071bjoul/Screenshot%202015-10-29%2010.06.42.jpg?dl=0)

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

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

Less More

- Posts: 112
- Thank you received: 3
-
-

10 years 11 months ago -  10 years 11 months ago [\#218873](#218873) by [tbroderick](/forum/user/36185-tbroderick "View tbroderick's Profile")  Replied by *[tbroderick](/forum/user/36185-tbroderick "View tbroderick's Profile")* on topic *[Mass Action Documentation](/forum/44-mass-actions/877257-mass-action-documentation#218873 "I need more information on the trigger of the mass actions.  I have a mass actions that needs to run at the start of each month. How do I trigger it?  a) Is a cron job necessary to trigger the mass actions? (The documentation on mass action does not mention cron jobs. The documentation on cron jobs does not mention mass actions). b) When I set trigger to &quot;every months&quot;, when will it actually run? How do I ensure it does not run the current month, but only next month? c) Can I set a timed trigger, e.g. 10 p.m. on May 31st (an accuracy of about one hour +/- would be sufficient) d) Can I set a date validation, e.g. &quot;do not run before June 1st&quot; in case it is triggered to early?  Thanks for your help (and eventually updating the documentation in this regard).  Best Gunnar")*

It looks like the css file is not being created. This is the standard csv file and not the custom one. But, there is neither the link nor the file in the email.

Last edit: 10 years 11 months ago by [tbroderick](/forum/user/36185-tbroderick "View tbroderick's Profile"). Reason: update

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

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

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

10 years 11 months ago [\#218883](#218883) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Mass Action Documentation](/forum/44-mass-actions/877257-mass-action-documentation#218883 "I need more information on the trigger of the mass actions.  I have a mass actions that needs to run at the start of each month. How do I trigger it?  a) Is a cron job necessary to trigger the mass actions? (The documentation on mass action does not mention cron jobs. The documentation on cron jobs does not mention mass actions). b) When I set trigger to &quot;every months&quot;, when will it actually run? How do I ensure it does not run the current month, but only next month? c) Can I set a timed trigger, e.g. 10 p.m. on May 31st (an accuracy of about one hour +/- would be sufficient) d) Can I set a date validation, e.g. &quot;do not run before June 1st&quot; in case it is triggered to early?  Thanks for your help (and eventually updating the documentation in this regard).  Best Gunnar")*

Hi,

Please give me the name of the action having the issue, I will do a complete debug on your website.
For the moment, I think that the file is not generated so nothing in the email because there is no data get.
No elements to export, so if there is no elements, no reason to create the file.

Now, the question is, why it does not get any elements ? maybe due to the filter based on the {time}...

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

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

Less More

- Posts: 112
- Thank you received: 3
-
-

10 years 11 months ago [\#218913](#218913) by [tbroderick](/forum/user/36185-tbroderick "View tbroderick's Profile")  Replied by *[tbroderick](/forum/user/36185-tbroderick "View tbroderick's Profile")* on topic *[Mass Action Documentation](/forum/44-mass-actions/877257-mass-action-documentation#218913 "I need more information on the trigger of the mass actions.  I have a mass actions that needs to run at the start of each month. How do I trigger it?  a) Is a cron job necessary to trigger the mass actions? (The documentation on mass action does not mention cron jobs. The documentation on cron jobs does not mention mass actions). b) When I set trigger to &quot;every months&quot;, when will it actually run? How do I ensure it does not run the current month, but only next month? c) Can I set a timed trigger, e.g. 10 p.m. on May 31st (an accuracy of about one hour +/- would be sufficient) d) Can I set a date validation, e.g. &quot;do not run before June 1st&quot; in case it is triggered to early?  Thanks for your help (and eventually updating the documentation in this regard).  Best Gunnar")*

The Mass Action is Daily Quickbooks Report (E). There is an action with the word "Test" in it that you can use also.

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

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

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

10 years 11 months ago [\#219143](#219143) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Mass Action Documentation](/forum/44-mass-actions/877257-mass-action-documentation#219143 "I need more information on the trigger of the mass actions.  I have a mass actions that needs to run at the start of each month. How do I trigger it?  a) Is a cron job necessary to trigger the mass actions? (The documentation on mass action does not mention cron jobs. The documentation on cron jobs does not mention mass actions). b) When I set trigger to &quot;every months&quot;, when will it actually run? How do I ensure it does not run the current month, but only next month? c) Can I set a timed trigger, e.g. 10 p.m. on May 31st (an accuracy of about one hour +/- would be sufficient) d) Can I set a date validation, e.g. &quot;do not run before June 1st&quot; in case it is triggered to early?  Thanks for your help (and eventually updating the documentation in this regard).  Best Gunnar")*

Hi,

There was an issue based on the generation of the paths, the server and web one, some times there was a missing "/" or "\".
So this should be solved with the new modifications I have done on your website.

Please keep us informed.

The following user(s) said Thank You: [tbroderick](/forum/user/36185-tbroderick "View tbroderick's Profile")

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

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

Less More

- Posts: 112
- Thank you received: 3
-
-

10 years 11 months ago [\#219185](#219185) by [tbroderick](/forum/user/36185-tbroderick "View tbroderick's Profile")  Replied by *[tbroderick](/forum/user/36185-tbroderick "View tbroderick's Profile")* on topic *[Mass Action Documentation](/forum/44-mass-actions/877257-mass-action-documentation#219185 "I need more information on the trigger of the mass actions.  I have a mass actions that needs to run at the start of each month. How do I trigger it?  a) Is a cron job necessary to trigger the mass actions? (The documentation on mass action does not mention cron jobs. The documentation on cron jobs does not mention mass actions). b) When I set trigger to &quot;every months&quot;, when will it actually run? How do I ensure it does not run the current month, but only next month? c) Can I set a timed trigger, e.g. 10 p.m. on May 31st (an accuracy of about one hour +/- would be sufficient) d) Can I set a date validation, e.g. &quot;do not run before June 1st&quot; in case it is triggered to early?  Thanks for your help (and eventually updating the documentation in this regard).  Best Gunnar")*

It's working! Thanks!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQ0LW1hc3MtYWN0aW9ucy84NzcyNTctbWFzcy1hY3Rpb24tZG9jdW1lbnRhdGlvbj90bXBsPW1hcmtkb3du) 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.846 seconds

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

[](#top)
