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

#   Custom Plugin in Hikashop

##

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

Less More

- Posts: 42
- Thank you received: 3
-
-

3 years 4 months ago [\#353572](#353572) by [JF](/forum/user/67343-jf "View JF's Profile")  *[Custom Plugin in Hikashop](/forum/25-install-update/906743-custom-plugin-in-hikashop#353572 "Hi,  May I know the correct AJAX POST URL or sample for triggering plugin in hikashop?  Thanks.")* was created by *[JF](/forum/user/67343-jf "View JF's Profile")*

Hi,

May I know the correct AJAX POST URL or sample for triggering plugin in hikashop?

Thanks.

- [ ![Capture1.jpeg](/forum/attachment/57432) ](/forum/attachment/57432 "Capture1.jpeg") [ ](/forum/attachment/57432?download=1 "Capture1.jpeg")
- [ ![Capture2.jpeg](/forum/attachment/57433) ](/forum/attachment/57433 "Capture2.jpeg") [ ](/forum/attachment/57433?download=1 "Capture2.jpeg")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzkwNjc0My1jdXN0b20tcGx1Z2luLWluLWhpa2FzaG9wP3RtcGw9bWFya2Rvd24=) 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: 86587
- Thank you received: 14327
-
-

3 years 4 months ago [\#353573](#353573) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Custom Plugin in Hikashop](/forum/25-install-update/906743-custom-plugin-in-hikashop#353573 "Hi,  May I know the correct AJAX POST URL or sample for triggering plugin in hikashop?  Thanks.")*

Hi,

HikaShop allows for plugins to create their own controllers.
I think the email_history plugin in plugins/hikashop/email_history, which displays the menu Customers&gt;Email history in your backend, is a good example of that. As you'll see, you need to implement the onHikashopPluginController event to register your controller. And you have the email_history_ctrl.php file which contains the controller with the tasks available.
Then, it's quite easy. For example, you can see the "listing" function in the controller, which is also registered as a task in the $display attribute of the controller class. To call it you can use the URL: index.php?option=com_hikashop&amp;ctrl=email_history&amp;task=listing
The only limitation to this is that you can't use a controller name which is already used in HikaShop as HikaShop's take precedence.
Also, note that you need a "views" folder in your plugin, or to add a "noview" parameter set to true when registering the controller in onHikashopPluginController.

The following user(s) said Thank You: [JF](/forum/user/67343-jf "View JF's Profile")

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

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