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

#   How to display extra text in hikashop\_product\_right\_part

##

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

Less More

- Posts: 54
- Thank you received: 2
-
-

7 years 7 months ago [\#305596](#305596) by [jvstratum](/forum/user/38128-jvstratum "View jvstratum's Profile")  *[How to display extra text in hikashop\_product\_right\_part](/forum/26-product-category-display/897280-how-to-display-extra-text-in-hikashop-product-right-part#305596 "Hi,  I needto display some additional text in hikashop&#95;product&#95;right&#95;part of the product view. And I need to do this for particular categories and their subcategories only..  How do I achieve this in Hikashop Essential?")* was created by *[jvstratum](/forum/user/38128-jvstratum "View jvstratum's Profile")*

Hi,

I needto display some additional text in hikashop_product_right_part of the product view. And I need to do this for particular categories and their subcategories only..

How do I achieve this in Hikashop Essential?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84OTcyODAtaG93LXRvLWRpc3BsYXktZXh0cmEtdGV4dC1pbi1oaWthc2hvcC1wcm9kdWN0LXJpZ2h0LXBhcnQ/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: 86359
- Thank you received: 14296
-
-

7 years 7 months ago [\#305605](#305605) 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 display extra text in hikashop\_product\_right\_part](/forum/26-product-category-display/897280-how-to-display-extra-text-in-hikashop-product-right-part#305605 "Hi,  I needto display some additional text in hikashop&#95;product&#95;right&#95;part of the product view. And I need to do this for particular categories and their subcategories only..  How do I achieve this in Hikashop Essential?")*

Hi,

You can create a custom field of the table "product" via the menu Display&gt;Custom fields.
If you enter some text in the custom field in the product, it will be displayed on the product page of that product on the frontend if you activate the corresponding display option of the custom field. Products without the custom field filled in won't have it.

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

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

Less More

- Posts: 54
- Thank you received: 2
-
-

7 years 7 months ago [\#305643](#305643) by [jvstratum](/forum/user/38128-jvstratum "View jvstratum's Profile")  Replied by *[jvstratum](/forum/user/38128-jvstratum "View jvstratum's Profile")* on topic *[How to display extra text in hikashop\_product\_right\_part](/forum/26-product-category-display/897280-how-to-display-extra-text-in-hikashop-product-right-part#305643 "Hi,  I needto display some additional text in hikashop&#95;product&#95;right&#95;part of the product view. And I need to do this for particular categories and their subcategories only..  How do I achieve this in Hikashop Essential?")*

Thank you for your answer Nicolas.

The problem with the custom field is that it all depends on the user editing the custom field. I'm looking for a way to force the displayed text if the product belongs to particular categories.

Is there a way to do this in php and can you help me with the code?

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

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

Less More

- Posts: 4820
- Thank you received: 652
-
-

7 years 7 months ago [\#305648](#305648) by [Philip](/forum/user/34318-philip "View Philip's Profile")  Replied by *[Philip](/forum/user/34318-philip "View Philip's Profile")* on topic *[How to display extra text in hikashop\_product\_right\_part](/forum/26-product-category-display/897280-how-to-display-extra-text-in-hikashop-product-right-part#305648 "Hi,  I needto display some additional text in hikashop&#95;product&#95;right&#95;part of the product view. And I need to do this for particular categories and their subcategories only..  How do I achieve this in Hikashop Essential?")*

Hello,

Then why don't use the **Categorie restriction**, in your custom field configuration, **Restriction** part

[ ![&#91;img](https://i.imgur.com/rzAE6hL.png) ](https://i.imgur.com/rzAE6hL.png "&#91;img")

Hope this will fit your needs.
Regards

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

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

Less More

- Posts: 54
- Thank you received: 2
-
-

7 years 7 months ago [\#305695](#305695) by [jvstratum](/forum/user/38128-jvstratum "View jvstratum's Profile")  Replied by *[jvstratum](/forum/user/38128-jvstratum "View jvstratum's Profile")* on topic *[How to display extra text in hikashop\_product\_right\_part](/forum/26-product-category-display/897280-how-to-display-extra-text-in-hikashop-product-right-part#305695 "Hi,  I needto display some additional text in hikashop&#95;product&#95;right&#95;part of the product view. And I need to do this for particular categories and their subcategories only..  How do I achieve this in Hikashop Essential?")*

I thought of that, but the customer is using Hikashop Essential. The category restriction is only available in the Business version. It's a very small shop and they don't want to upgrade to the Business version just because of this.

Meanwhile we have placed the text in the Joomla sidebar.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84OTcyODAtaG93LXRvLWRpc3BsYXktZXh0cmEtdGV4dC1pbi1oaWthc2hvcC1wcm9kdWN0LXJpZ2h0LXBhcnQ/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: 86359
- Thank you received: 14296
-
-

7 years 7 months ago [\#305697](#305697) 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 display extra text in hikashop\_product\_right\_part](/forum/26-product-category-display/897280-how-to-display-extra-text-in-hikashop-product-right-part#305697 "Hi,  I needto display some additional text in hikashop&#95;product&#95;right&#95;part of the product view. And I need to do this for particular categories and their subcategories only..  How do I achieve this in Hikashop Essential?")*

Hi,

In that case, in the show_default view file, you have the categories of the current product in $this-&gt;categories.
[ www.hikashop.com/forum/5-support-en-fran...es-d-un-produit.html](https://www.hikashop.com/forum/5-support-en-francais-french-support-/892991-afficher-noms-des-categories-d-un-produit.html)
So you could add some custom code on that array to check if the product is is one category or not and then echo the text you want.

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

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

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