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

#   How to invoke mass action externally

##

- **[PeterChain](/forum/user/570-peterchain "View PeterChain's Profile")**
- [![PeterChain's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar570.png)](/forum/user/570-peterchain "View PeterChain's Profile") Topic Author
- [ Offline](/forum/user/570-peterchain)

Less More

- Posts: 640
- Thank you received: 16
-
-

10 years 9 months ago [\#231007](#231007) by [PeterChain](/forum/user/570-peterchain "View PeterChain's Profile")  *[How to invoke mass action externally](/forum/44-mass-actions/882548-how-to-invoke-mass-action-externally#231007 "-- HikaShop version -- : 2.6.1 -- Joomla version -- : 3.4.8  I want a button or a link in frontend to invoke the execution of a mass action.  Is there a simple way to obtain a URL for this?  I donw't want a cron configuration, just to call the mass action on demand.  Thank you.")* was created by *[PeterChain](/forum/user/570-peterchain "View PeterChain's Profile")*

-- HikaShop version -- : 2.6.1
-- Joomla version -- : 3.4.8

I want a button or a link in frontend to invoke the execution of a mass action.

Is there a simple way to obtain a URL for this?

I donw't want a cron configuration, just to call the mass action on demand.

Thank you.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQ0LW1hc3MtYWN0aW9ucy84ODI1NDgtaG93LXRvLWludm9rZS1tYXNzLWFjdGlvbi1leHRlcm5hbGx5P3RtcGw9bWFya2Rvd24=) 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?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86584
- Thank you received: 14325
-
-

10 years 9 months ago [\#231018](#231018) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[How to invoke mass action externally](/forum/44-mass-actions/882548-how-to-invoke-mass-action-externally#231018 "-- HikaShop version -- : 2.6.1 -- Joomla version -- : 3.4.8  I want a button or a link in frontend to invoke the execution of a mass action.  Is there a simple way to obtain a URL for this?  I donw't want a cron configuration, just to call the mass action on demand.  Thank you.")*

Hi,

It would require a new system plugin implementing the trigger onMassactionTableTriggersLoad(&amp;$table, &amp;$triggers, &amp;$triggers_html, &amp;$loadedData) (to add a new trigger for your link URL) like we do in the plugins/system/hikashopmassaction plugin with the cron task triggers.
Then in your plugin add a second trigger onAfterRoute and look at $_REQUEST to identify the parameters of your specific URL and call the massactionClass-&gt;_trigger function like in the onHikashopCronTrigger of the system hikashopmassaction plugin.

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

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