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

#   How to call a plugin from an article

##

- **[martial.duchamp@gmail.com](/forum/user/59408-martial-duchamp-gmail-com "View martial.duchamp@gmail.com's Profile")**
- [![martial.duchamp@gmail.com's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/59408-martial-duchamp-gmail-com "View martial.duchamp@gmail.com's Profile") Topic Author
- [ Offline](/forum/user/59408-martial-duchamp-gmail-com)

Less More

- Posts: 13
- Thank you received: 0
-
-

6 years 7 months ago [\#317691](#317691) by [martial.duchamp@gmail.com](/forum/user/59408-martial-duchamp-gmail-com "View martial.duchamp@gmail.com's Profile")  *[How to call a plugin from an article](/forum/31-development/899595-how-to-call-a-plugin-from-an-article#317691 "-- url of the page with the problem -- : duchampdrive.fr -- HikaShop version -- : 4.2.3 -- Joomla version -- : 3.9.16 -- PHP version -- : 7.3.16 -- Browser(s) name and version -- : Firefox 68 -- Error-message(debug-mod must be tuned on) -- : None  Dear,  I would like to create a shipping module to show the shipping option available that are shown on the check-out page (My shipping options keep changing). For that I try to create a Custom HTML Modules (  www.kksou.com/php-gtk2/joomla/how-to-run...tom-html-modules.php ) using the 'Hikashop manual shipping plugin' plugin instead, but I don't find the plugin name and argument I should write the in. I tried to include the following code but it does not work: {plg&#95;hikashopshipping&#95;manual} Can you please provide the command that should be included.  Thank you in advance Martial")* was created by *[martial.duchamp@gmail.com](/forum/user/59408-martial-duchamp-gmail-com "View martial.duchamp@gmail.com's Profile")*

-- url of the page with the problem -- : duchampdrive.fr
-- HikaShop version -- : 4.2.3
-- Joomla version -- : 3.9.16
-- PHP version -- : 7.3.16
-- Browser(s) name and version -- : Firefox 68
-- Error-message(debug-mod must be tuned on) -- : None

Dear,

I would like to create a shipping module to show the shipping option available that are shown on the check-out page (My shipping options keep changing). For that I try to create a Custom HTML Modules ([ www.kksou.com/php-gtk2/joomla/how-to-run...tom-html-modules.php](https://www.kksou.com/php-gtk2/joomla/how-to-run-joomla-content-plugins-in-custom-html-modules.php)) using the 'Hikashop manual shipping plugin' plugin instead, but I don't find the plugin name and argument I should write the in.
I tried to include the following code but it does not work:
{plg_hikashopshipping_manual}
Can you please provide the command that should be included.

Thank you in advance
Martial

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMxLWRldmVsb3BtZW50Lzg5OTU5NS1ob3ctdG8tY2FsbC1hLXBsdWdpbi1mcm9tLWFuLWFydGljbGU/dG1wbD1tYXJrZG93bg==) 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: 14325
-
-

6 years 7 months ago [\#317710](#317710) 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 call a plugin from an article](/forum/31-development/899595-how-to-call-a-plugin-from-an-article#317710 "-- url of the page with the problem -- : duchampdrive.fr -- HikaShop version -- : 4.2.3 -- Joomla version -- : 3.9.16 -- PHP version -- : 7.3.16 -- Browser(s) name and version -- : Firefox 68 -- Error-message(debug-mod must be tuned on) -- : None  Dear,  I would like to create a shipping module to show the shipping option available that are shown on the check-out page (My shipping options keep changing). For that I try to create a Custom HTML Modules (  www.kksou.com/php-gtk2/joomla/how-to-run...tom-html-modules.php ) using the 'Hikashop manual shipping plugin' plugin instead, but I don't find the plugin name and argument I should write the in. I tried to include the following code but it does not work: {plg&#95;hikashopshipping&#95;manual} Can you please provide the command that should be included.  Thank you in advance Martial")*

Hi,

The instructions on that link are only for plugins of the group "content" which are meant to display HTML in Joomla articles. The shipping plugins of HikaShop are not content plugins. They are plugins of the group "hikashopshipping" made to display shipping methods during the checkout of HikaShop.
So you won't be able to achieve what you want with these instructions.
However, there is probably another solution to achieve what you want. Could you describe how your shipping options keep changing so that we can better understand what is your need ?

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

- **[martial.duchamp@gmail.com](/forum/user/59408-martial-duchamp-gmail-com "View martial.duchamp@gmail.com's Profile")**
- [![martial.duchamp@gmail.com's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/59408-martial-duchamp-gmail-com "View martial.duchamp@gmail.com's Profile") Topic Author
- [ Offline](/forum/user/59408-martial-duchamp-gmail-com)

Less More

- Posts: 13
- Thank you received: 0
-
-

6 years 7 months ago [\#317726](#317726) by [martial.duchamp@gmail.com](/forum/user/59408-martial-duchamp-gmail-com "View martial.duchamp@gmail.com's Profile")  Replied by *[martial.duchamp@gmail.com](/forum/user/59408-martial-duchamp-gmail-com "View martial.duchamp@gmail.com's Profile")* on topic *[How to call a plugin from an article](/forum/31-development/899595-how-to-call-a-plugin-from-an-article#317726 "-- url of the page with the problem -- : duchampdrive.fr -- HikaShop version -- : 4.2.3 -- Joomla version -- : 3.9.16 -- PHP version -- : 7.3.16 -- Browser(s) name and version -- : Firefox 68 -- Error-message(debug-mod must be tuned on) -- : None  Dear,  I would like to create a shipping module to show the shipping option available that are shown on the check-out page (My shipping options keep changing). For that I try to create a Custom HTML Modules (  www.kksou.com/php-gtk2/joomla/how-to-run...tom-html-modules.php ) using the 'Hikashop manual shipping plugin' plugin instead, but I don't find the plugin name and argument I should write the in. I tried to include the following code but it does not work: {plg&#95;hikashopshipping&#95;manual} Can you please provide the command that should be included.  Thank you in advance Martial")*

Hi,

Thank you for your reply.
You can find the shipping options at:
[ duchampdrive.fr/index.php/horaire-de-retrait-livraison](https://duchampdrive.fr/index.php/horaire-de-retrait-livraison)
You can see they are day dependent and they will change continuously over the year. Right now, I have input them as text in an article.

If you do the checkout, you will get the attached options at the shipping stage, that I have input in hikashop/shipping. I would like the attached page to be in displayed at: [ duchampdrive.fr/index.php/horaire-de-retrait-livraison](https://duchampdrive.fr/index.php/horaire-de-retrait-livraison)

Do you think it is possible?
Thank you
Martial

- [ ![Screenshotfrom2020-04-2011-30-19.png](/forum/attachment/49123) ](/forum/attachment/49123 "...2011-30-19.png") [ ](/forum/attachment/49123?download=1 "...2011-30-19.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMxLWRldmVsb3BtZW50Lzg5OTU5NS1ob3ctdG8tY2FsbC1hLXBsdWdpbi1mcm9tLWFuLWFydGljbGU/dG1wbD1tYXJrZG93bg==) 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: 14325
-
-

6 years 7 months ago [\#317729](#317729) 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 call a plugin from an article](/forum/31-development/899595-how-to-call-a-plugin-from-an-article#317729 "-- url of the page with the problem -- : duchampdrive.fr -- HikaShop version -- : 4.2.3 -- Joomla version -- : 3.9.16 -- PHP version -- : 7.3.16 -- Browser(s) name and version -- : Firefox 68 -- Error-message(debug-mod must be tuned on) -- : None  Dear,  I would like to create a shipping module to show the shipping option available that are shown on the check-out page (My shipping options keep changing). For that I try to create a Custom HTML Modules (  www.kksou.com/php-gtk2/joomla/how-to-run...tom-html-modules.php ) using the 'Hikashop manual shipping plugin' plugin instead, but I don't find the plugin name and argument I should write the in. I tried to include the following code but it does not work: {plg&#95;hikashopshipping&#95;manual} Can you please provide the command that should be included.  Thank you in advance Martial")*

HI,

OK, I think I understand what you're trying to do.
You want the shipping methods selection area of the checkout to be displayed on its own on another page so that you don't have to enter the shipping information both in HikaShop and in a Joomla article but only in HikaShop.
That won't be possible to do it like that unless there is some code development.
What I would recommend is to change your Joomla article to include in it some PHP to retreive the shipping methods available and display them.
The PHP is not that long. It should be something like that: Code:

&lt;ul&gt; &lt;?php if(!defined('DS')) define('DS', DIRECTORY_SEPARATOR); include_once(rtrim(JPATH_ADMINISTRATOR,DS).DS.'components'.DS.'com_hikashop'.DS.'helpers'.DS.'helper.php'); $pluginClass = hikashop_get('class.plugins'); $rates = $pluginClass-&gt;getMethods('shipping', '', '', $currency); foreach($rates as $rate) { echo '&lt;li&gt;&lt;strong&gt;'.$rate-&gt;shipping_name.'&lt;/strong&gt;&lt;br/&gt;'.$rate-&gt;shipping_description.'&lt;/li&gt;'; } ?&gt; &lt;/ul&gt;

And here is an article on how to add PHP code in a Joomla article:
[ www.technetexperts.com/web/steps-to-writ...e-in-joomla-article/](https://www.technetexperts.com/web/steps-to-write-php-code-in-joomla-article/)

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

- **[martial.duchamp@gmail.com](/forum/user/59408-martial-duchamp-gmail-com "View martial.duchamp@gmail.com's Profile")**
- [![martial.duchamp@gmail.com's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/59408-martial-duchamp-gmail-com "View martial.duchamp@gmail.com's Profile") Topic Author
- [ Offline](/forum/user/59408-martial-duchamp-gmail-com)

Less More

- Posts: 13
- Thank you received: 0
-
-

6 years 7 months ago [\#317796](#317796) by [martial.duchamp@gmail.com](/forum/user/59408-martial-duchamp-gmail-com "View martial.duchamp@gmail.com's Profile")  Replied by *[martial.duchamp@gmail.com](/forum/user/59408-martial-duchamp-gmail-com "View martial.duchamp@gmail.com's Profile")* on topic *[How to call a plugin from an article](/forum/31-development/899595-how-to-call-a-plugin-from-an-article#317796 "-- url of the page with the problem -- : duchampdrive.fr -- HikaShop version -- : 4.2.3 -- Joomla version -- : 3.9.16 -- PHP version -- : 7.3.16 -- Browser(s) name and version -- : Firefox 68 -- Error-message(debug-mod must be tuned on) -- : None  Dear,  I would like to create a shipping module to show the shipping option available that are shown on the check-out page (My shipping options keep changing). For that I try to create a Custom HTML Modules (  www.kksou.com/php-gtk2/joomla/how-to-run...tom-html-modules.php ) using the 'Hikashop manual shipping plugin' plugin instead, but I don't find the plugin name and argument I should write the in. I tried to include the following code but it does not work: {plg&#95;hikashopshipping&#95;manual} Can you please provide the command that should be included.  Thank you in advance Martial")*

Hi Nicolas,

It is almost perfect but it displays both the 'published' and 'un-published' shipping options. Could I add something in the previous code to show only the published sipping option. Thank you in advance.

Martial

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMxLWRldmVsb3BtZW50Lzg5OTU5NS1ob3ctdG8tY2FsbC1hLXBsdWdpbi1mcm9tLWFuLWFydGljbGU/dG1wbD1tYXJrZG93bg==) 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: 14325
-
-

6 years 7 months ago [\#317798](#317798) 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 call a plugin from an article](/forum/31-development/899595-how-to-call-a-plugin-from-an-article#317798 "-- url of the page with the problem -- : duchampdrive.fr -- HikaShop version -- : 4.2.3 -- Joomla version -- : 3.9.16 -- PHP version -- : 7.3.16 -- Browser(s) name and version -- : Firefox 68 -- Error-message(debug-mod must be tuned on) -- : None  Dear,  I would like to create a shipping module to show the shipping option available that are shown on the check-out page (My shipping options keep changing). For that I try to create a Custom HTML Modules (  www.kksou.com/php-gtk2/joomla/how-to-run...tom-html-modules.php ) using the 'Hikashop manual shipping plugin' plugin instead, but I don't find the plugin name and argument I should write the in. I tried to include the following code but it does not work: {plg&#95;hikashopshipping&#95;manual} Can you please provide the command that should be included.  Thank you in advance Martial")*

Hi,

Sure. After the line:
foreach($rates as $rate) {
just add:
if(empty($rate-&gt;shipping_published)) continue;

The following user(s) said Thank You: [martial.duchamp@gmail.com](/forum/user/59408-martial-duchamp-gmail-com "View martial.duchamp@gmail.com's Profile")

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

- **[martial.duchamp@gmail.com](/forum/user/59408-martial-duchamp-gmail-com "View martial.duchamp@gmail.com's Profile")**
- [![martial.duchamp@gmail.com's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/59408-martial-duchamp-gmail-com "View martial.duchamp@gmail.com's Profile") Topic Author
- [ Offline](/forum/user/59408-martial-duchamp-gmail-com)

Less More

- Posts: 13
- Thank you received: 0
-
-

6 years 7 months ago [\#317833](#317833) by [martial.duchamp@gmail.com](/forum/user/59408-martial-duchamp-gmail-com "View martial.duchamp@gmail.com's Profile")  Replied by *[martial.duchamp@gmail.com](/forum/user/59408-martial-duchamp-gmail-com "View martial.duchamp@gmail.com's Profile")* on topic *[How to call a plugin from an article](/forum/31-development/899595-how-to-call-a-plugin-from-an-article#317833 "-- url of the page with the problem -- : duchampdrive.fr -- HikaShop version -- : 4.2.3 -- Joomla version -- : 3.9.16 -- PHP version -- : 7.3.16 -- Browser(s) name and version -- : Firefox 68 -- Error-message(debug-mod must be tuned on) -- : None  Dear,  I would like to create a shipping module to show the shipping option available that are shown on the check-out page (My shipping options keep changing). For that I try to create a Custom HTML Modules (  www.kksou.com/php-gtk2/joomla/how-to-run...tom-html-modules.php ) using the 'Hikashop manual shipping plugin' plugin instead, but I don't find the plugin name and argument I should write the in. I tried to include the following code but it does not work: {plg&#95;hikashopshipping&#95;manual} Can you please provide the command that should be included.  Thank you in advance Martial")*

Excellent. I works very well. Thank you.

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

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