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

#   Shortcode plugin into WYSIWYG custom field

##

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

Less More

- Posts: 3
- Thank you received: 0
-
-

10 years 8 months ago -  10 years 8 months ago [\#229300](#229300) by [altod](/forum/user/39870-altod "View altod's Profile")  *[Shortcode plugin into WYSIWYG custom field](/forum/26-product-category-display/882178-shortcode-plugin-into-wysiwyg-custom-field#229300 "-- url of the page with the problem -- :   www.klamoa.com/index.php/shop/eliana-ric...t/375-tunica-organza  -- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.5  Hello, i want to add a WYSIWYG custom field to insert a button with &quot;Shortcode plugin&quot;(). This plugin works well into product description (as you see in link page with the problem - GUIDA ALLE TAGLIE - it is a spoiler code). But if I insert this code into WYSIWYG custom field (i see custom field after characteristics like &quot;info&quot;), it show me the code as text not the button. I have set &quot;no&quot; to Input filtering setting.  Please can u help me? Thanks")* was created by *[altod](/forum/user/39870-altod "View altod's Profile")*

-- url of the page with the problem -- : [ www.klamoa.com/index.php/shop/eliana-ric...t/375-tunica-organza](http://www.klamoa.com/index.php/shop/eliana-riccio/product/375-tunica-organza)
-- HikaShop version -- : 2.5.0
-- Joomla version -- : 3.4.5

Hello,
i want to add a WYSIWYG custom field to insert a button with "Shortcode plugin"([ Shortcode Plugin](http://codecanyon.net/item/shortcode-ultimate-plugin-for-joomla/7807980)).
This plugin works well into product description (as you see in link page with the problem - GUIDA ALLE TAGLIE - it is a spoiler code).
But if I insert this code into WYSIWYG custom field (i see custom field after characteristics like "info"), it show me the code as **text** not the button.
I have set "no" to Input filtering setting.

Please can u help me?
Thanks

Last edit: 10 years 8 months ago by [altod](/forum/user/39870-altod "View altod's Profile").

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

10 years 8 months ago [\#229303](#229303) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Shortcode plugin into WYSIWYG custom field](/forum/26-product-category-display/882178-shortcode-plugin-into-wysiwyg-custom-field#229303 "-- url of the page with the problem -- :   www.klamoa.com/index.php/shop/eliana-ric...t/375-tunica-organza  -- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.5  Hello, i want to add a WYSIWYG custom field to insert a button with &quot;Shortcode plugin&quot;(). This plugin works well into product description (as you see in link page with the problem - GUIDA ALLE TAGLIE - it is a spoiler code). But if I insert this code into WYSIWYG custom field (i see custom field after characteristics like &quot;info&quot;), it show me the code as text not the button. I have set &quot;no&quot; to Input filtering setting.  Please can u help me? Thanks")*

Hi,

The WYSIWYG custom field display his content directly.
There is some kind of trigger in Joomla to "prepare the content" ; that feature is used in Joomla article and some other places.
In HikaShop, the product description is display with that trigger. It allow the Joomla "content" plugin to modify the data before the display.
But the WYSIWYG custom field do not use that trigger because it display directly the content.

It means that you have to edit the administrator/components/com_hikashop/classes/field.php and modfy the "show" function in the class "hikashopWysiwyg" : Code:

function show(&amp;$field,$value) { return JHTML::_('content.prepare', $this-&gt;trans($value)); }

Otherwise, I'll submit your feature request to the rest of the HikaShop team to see if we add it directly in HikaShop or if we create an option for it.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

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

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

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

Less More

- Posts: 3
- Thank you received: 0
-
-

10 years 8 months ago [\#229450](#229450) by [altod](/forum/user/39870-altod "View altod's Profile")  Replied by *[altod](/forum/user/39870-altod "View altod's Profile")* on topic *[Shortcode plugin into WYSIWYG custom field](/forum/26-product-category-display/882178-shortcode-plugin-into-wysiwyg-custom-field#229450 "-- url of the page with the problem -- :   www.klamoa.com/index.php/shop/eliana-ric...t/375-tunica-organza  -- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.5  Hello, i want to add a WYSIWYG custom field to insert a button with &quot;Shortcode plugin&quot;(). This plugin works well into product description (as you see in link page with the problem - GUIDA ALLE TAGLIE - it is a spoiler code). But if I insert this code into WYSIWYG custom field (i see custom field after characteristics like &quot;info&quot;), it show me the code as text not the button. I have set &quot;no&quot; to Input filtering setting.  Please can u help me? Thanks")*

hello!
changed the code and it works! thank you!

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

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

Less More

- Posts: 303
- Thank you received: 18
-
-

10 years 7 months ago [\#233418](#233418) by [mojooutdoors-holden](/forum/user/12526-mojooutdoors-holden "View mojooutdoors-holden's Profile")  Replied by *[mojooutdoors-holden](/forum/user/12526-mojooutdoors-holden "View mojooutdoors-holden's Profile")* on topic *[Shortcode plugin into WYSIWYG custom field](/forum/26-product-category-display/882178-shortcode-plugin-into-wysiwyg-custom-field#233418 "-- url of the page with the problem -- :   www.klamoa.com/index.php/shop/eliana-ric...t/375-tunica-organza  -- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.5  Hello, i want to add a WYSIWYG custom field to insert a button with &quot;Shortcode plugin&quot;(). This plugin works well into product description (as you see in link page with the problem - GUIDA ALLE TAGLIE - it is a spoiler code). But if I insert this code into WYSIWYG custom field (i see custom field after characteristics like &quot;info&quot;), it show me the code as text not the button. I have set &quot;no&quot; to Input filtering setting.  Please can u help me? Thanks")*

- url of the page with the problem -- : [ new.mojooutdoors.com/index.php/products/...mojo-scoot-and-shoot](http://new.mojooutdoors.com/index.php/products/turkey/mojo-scoot-and-shoot)
-- HikaShop version -- : 2.6.1
-- Joomla version -- : 3.4.8

Hi Jerome,

I tried your fix, but still cannot get the shortcode to render properly on the frontend? Still just shows up as text. The shortcode works in any other text editor on the website (e.g. articles, modules, etc.). Any thoughts?

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

10 years 7 months ago [\#233419](#233419) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Shortcode plugin into WYSIWYG custom field](/forum/26-product-category-display/882178-shortcode-plugin-into-wysiwyg-custom-field#233419 "-- url of the page with the problem -- :   www.klamoa.com/index.php/shop/eliana-ric...t/375-tunica-organza  -- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.5  Hello, i want to add a WYSIWYG custom field to insert a button with &quot;Shortcode plugin&quot;(). This plugin works well into product description (as you see in link page with the problem - GUIDA ALLE TAGLIE - it is a spoiler code). But if I insert this code into WYSIWYG custom field (i see custom field after characteristics like &quot;info&quot;), it show me the code as text not the button. I have set &quot;no&quot; to Input filtering setting.  Please can u help me? Thanks")*

Hi,

The code modification proposed by jerome was for the support of the plugin replacing in the custom fields of the type "wysiwyg".
Looking at your link, it seems that you're adding your shortcode in the product description. That is supposed to be supported by default by that plugin. So I would guess that this shortcode plugin is not activated or something like that. You might want to contact the support of that plugin as it's supposed to work by default in the product description.
Also, I see that the product layout is heavily customized on your link. So maybe the issue comes from the customization made by your template (or yourself). Try switching to the default template of Joomla and see if that helps. If it does, then it indeed comes from the customization of the product layout, probably in the file templates/YOUR_TEMPLATE/html/com_hikashop/product/show_default.php and in that case, I would recommend to contact your template provider for help as they must have made a mistake with the display of the description.

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

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

Less More

- Posts: 16
- Thank you received: 0
-
-

10 years 2 months ago -  10 years 2 months ago [\#247853](#247853) by [sonic69](/forum/user/36960-sonic69 "View sonic69's Profile")  Replied by *[sonic69](/forum/user/36960-sonic69 "View sonic69's Profile")* on topic *[Shortcode plugin into WYSIWYG custom field](/forum/26-product-category-display/882178-shortcode-plugin-into-wysiwyg-custom-field#247853 "-- url of the page with the problem -- :   www.klamoa.com/index.php/shop/eliana-ric...t/375-tunica-organza  -- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.5  Hello, i want to add a WYSIWYG custom field to insert a button with &quot;Shortcode plugin&quot;(). This plugin works well into product description (as you see in link page with the problem - GUIDA ALLE TAGLIE - it is a spoiler code). But if I insert this code into WYSIWYG custom field (i see custom field after characteristics like &quot;info&quot;), it show me the code as text not the button. I have set &quot;no&quot; to Input filtering setting.  Please can u help me? Thanks")*

I have the same problem. Shortcodes plugin does not work in Hikashop!
class hikashopWysiwyg in file dministrator/components/com_hikashop/classes/field.php :

> code removed by a moderator

What should I do? Please help

Last edit: 10 years 2 months ago by [Jerome](/forum/user/80-jerome "View Jerome's Profile"). Reason: remove code

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

10 years 2 months ago [\#247890](#247890) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Shortcode plugin into WYSIWYG custom field](/forum/26-product-category-display/882178-shortcode-plugin-into-wysiwyg-custom-field#247890 "-- url of the page with the problem -- :   www.klamoa.com/index.php/shop/eliana-ric...t/375-tunica-organza  -- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.5  Hello, i want to add a WYSIWYG custom field to insert a button with &quot;Shortcode plugin&quot;(). This plugin works well into product description (as you see in link page with the problem - GUIDA ALLE TAGLIE - it is a spoiler code). But if I insert this code into WYSIWYG custom field (i see custom field after characteristics like &quot;info&quot;), it show me the code as text not the button. I have set &quot;no&quot; to Input filtering setting.  Please can u help me? Thanks")*

Hi,

Be sure you're using the latest HikaShop package.
Because the patch I gave 6 months ago is include in HikaShop since.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

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

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

Less More

- Posts: 16
- Thank you received: 0
-
-

10 years 2 months ago [\#247949](#247949) by [sonic69](/forum/user/36960-sonic69 "View sonic69's Profile")  Replied by *[sonic69](/forum/user/36960-sonic69 "View sonic69's Profile")* on topic *[Shortcode plugin into WYSIWYG custom field](/forum/26-product-category-display/882178-shortcode-plugin-into-wysiwyg-custom-field#247949 "-- url of the page with the problem -- :   www.klamoa.com/index.php/shop/eliana-ric...t/375-tunica-organza  -- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.5  Hello, i want to add a WYSIWYG custom field to insert a button with &quot;Shortcode plugin&quot;(). This plugin works well into product description (as you see in link page with the problem - GUIDA ALLE TAGLIE - it is a spoiler code). But if I insert this code into WYSIWYG custom field (i see custom field after characteristics like &quot;info&quot;), it show me the code as text not the button. I have set &quot;no&quot; to Input filtering setting.  Please can u help me? Thanks")*

im using hikashop 2.6.3.

What should I do? Where is the problem?

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

10 years 2 months ago [\#247968](#247968) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Shortcode plugin into WYSIWYG custom field](/forum/26-product-category-display/882178-shortcode-plugin-into-wysiwyg-custom-field#247968 "-- url of the page with the problem -- :   www.klamoa.com/index.php/shop/eliana-ric...t/375-tunica-organza  -- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.5  Hello, i want to add a WYSIWYG custom field to insert a button with &quot;Shortcode plugin&quot;(). This plugin works well into product description (as you see in link page with the problem - GUIDA ALLE TAGLIE - it is a spoiler code). But if I insert this code into WYSIWYG custom field (i see custom field after characteristics like &quot;info&quot;), it show me the code as text not the button. I have set &quot;no&quot; to Input filtering setting.  Please can u help me? Thanks")*

Hi,

The code you posted was rightfully a part of the Wysiwyg field class but did not mentioned the "show" function which is below the "display" function.
Now, regarding the fact that the patch I submitted 6 months ago has been approved but, will be in HikaShop 3 and isn't in the current release (when I really thought it was) ; you have to apply the patch manually just as explained in the post #229303
You already found the Wysiwyg field class ; you just have to look for the "show" function and replace it.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

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

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

[](#top)
