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

#   Show tabular with custom fields

##

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

Less More

- Posts: 7
- Thank you received: 0
-
-

10 years 6 months ago [\#235240](#235240) by [nancytoemen](/forum/user/36112-nancytoemen "View nancytoemen's Profile")  *[Show tabular with custom fields](/forum/26-product-category-display/883575-show-tabular-with-custom-fields#235240 "I have created some extra tabs in the show&#95;tabular file.    Now i have to link them to the custom fieds i have made. I've put this code in the tabular file but it's not working:    php echo JHTML::&#95;('content.prepare',preg&#95;replace('##i','',$this-&gt;element-&gt;recept)); ?&gt;   Can someone help me with this?")* was created by *[nancytoemen](/forum/user/36112-nancytoemen "View nancytoemen's Profile")*

I have created some extra tabs in the show_tabular file.

&lt;li id="hikashop_show_tabular_recept_li" onclick="displayTab('hikashop_show_tabular_recept');"&gt;&lt;?php echo JText::_('RECEPT');?&gt;&lt;/li&gt;

Now i have to link them to the custom fieds i have made.
I've put this code in the tabular file but it's not working:

&lt;div class="hikashop_tabs_content" id="hikashop_show_tabular_recept"&gt;
&lt;div id="hikashop_recept_main" class="hikashop_recept_main"&gt;
&lt;?php
echo JHTML::_('content.prepare',preg_replace('#&lt;hr *id="system-readmore" */&gt;#i','',$this-&gt;element-&gt;recept));
?&gt;
&lt;/div&gt;

Can someone help me with this?

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

- **[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")**
- [![Mohamed Thelji's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6861.png)](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")
- [ Offline](/forum/user/6861-mohamed-thelji)

Less More

- Posts: 12953
- Thank you received: 1778
-
-
-

10 years 6 months ago [\#235244](#235244) by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")  Replied by *[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")* on topic *[Show tabular with custom fields](/forum/26-product-category-display/883575-show-tabular-with-custom-fields#235244 "I have created some extra tabs in the show&#95;tabular file.    Now i have to link them to the custom fieds i have made. I've put this code in the tabular file but it's not working:    php echo JHTML::&#95;('content.prepare',preg&#95;replace('##i','',$this-&gt;element-&gt;recept)); ?&gt;   Can someone help me with this?")*

Hello,
Can you give me more information through some screenshots for example of :
- What you have (do you have some error message? where did you add your code ?)
- What you want (what and where do you want to add your customization?)

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

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

Less More

- Posts: 7
- Thank you received: 0
-
-

10 years 6 months ago [\#235381](#235381) by [nancytoemen](/forum/user/36112-nancytoemen "View nancytoemen's Profile")  Replied by *[nancytoemen](/forum/user/36112-nancytoemen "View nancytoemen's Profile")* on topic *[Show tabular with custom fields](/forum/26-product-category-display/883575-show-tabular-with-custom-fields#235381 "I have created some extra tabs in the show&#95;tabular file.    Now i have to link them to the custom fieds i have made. I've put this code in the tabular file but it's not working:    php echo JHTML::&#95;('content.prepare',preg&#95;replace('##i','',$this-&gt;element-&gt;recept)); ?&gt;   Can someone help me with this?")*

Hi Mohamed,

These are the screenshots. The custom field 'recept' i want to show when you click on the tab 'recept' on the product page.

- [ ![1.jpg](/forum/attachment/30450) ](/forum/attachment/30450 "1.jpg") [ ](/forum/attachment/30450?download=1 "1.jpg")
- [ ![2.jpg](/forum/attachment/30451) ](/forum/attachment/30451 "2.jpg") [ ](/forum/attachment/30451?download=1 "2.jpg")
- [ ![3.jpg](/forum/attachment/30452) ](/forum/attachment/30452 "3.jpg") [ ](/forum/attachment/30452?download=1 "3.jpg")

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

10 years 6 months ago [\#235404](#235404) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Show tabular with custom fields](/forum/26-product-category-display/883575-show-tabular-with-custom-fields#235404 "I have created some extra tabs in the show&#95;tabular file.    Now i have to link them to the custom fieds i have made. I've put this code in the tabular file but it's not working:    php echo JHTML::&#95;('content.prepare',preg&#95;replace('##i','',$this-&gt;element-&gt;recept)); ?&gt;   Can someone help me with this?")*

Hi,

Could you also provide a screenshot of the settings of your custom field and a link to the product page so that we can analyse the issue ?

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

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

Less More

- Posts: 7
- Thank you received: 0
-
-

10 years 6 months ago [\#235434](#235434) by [nancytoemen](/forum/user/36112-nancytoemen "View nancytoemen's Profile")  Replied by *[nancytoemen](/forum/user/36112-nancytoemen "View nancytoemen's Profile")* on topic *[Show tabular with custom fields](/forum/26-product-category-display/883575-show-tabular-with-custom-fields#235434 "I have created some extra tabs in the show&#95;tabular file.    Now i have to link them to the custom fieds i have made. I've put this code in the tabular file but it's not working:    php echo JHTML::&#95;('content.prepare',preg&#95;replace('##i','',$this-&gt;element-&gt;recept)); ?&gt;   Can someone help me with this?")*

Of course: [ www.zelexion.nl/ben-evers/granen/product/couscous-spelt-kamut](http://www.zelexion.nl/ben-evers/granen/product/couscous-spelt-kamut)
In the attachment the screenshot of the custom field settings.

- [ ![custom&#95;field.jpg](/forum/attachment/30460) ](/forum/attachment/30460 "custom&#95;field.jpg") [ ](/forum/attachment/30460?download=1 "custom&#95;field.jpg")

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

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

10 years 6 months ago [\#235456](#235456) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Show tabular with custom fields](/forum/26-product-category-display/883575-show-tabular-with-custom-fields#235456 "I have created some extra tabs in the show&#95;tabular file.    Now i have to link them to the custom fieds i have made. I've put this code in the tabular file but it's not working:    php echo JHTML::&#95;('content.prepare',preg&#95;replace('##i','',$this-&gt;element-&gt;recept)); ?&gt;   Can someone help me with this?")*

Hi,

The code seems to be correct, even if it uses an old version of the view.
Could you try to backup your view override and remove it and add the code in the new view code ?

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

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

Less More

- Posts: 7
- Thank you received: 0
-
-

10 years 6 months ago [\#235844](#235844) by [nancytoemen](/forum/user/36112-nancytoemen "View nancytoemen's Profile")  Replied by *[nancytoemen](/forum/user/36112-nancytoemen "View nancytoemen's Profile")* on topic *[Show tabular with custom fields](/forum/26-product-category-display/883575-show-tabular-with-custom-fields#235844 "I have created some extra tabs in the show&#95;tabular file.    Now i have to link them to the custom fieds i have made. I've put this code in the tabular file but it's not working:    php echo JHTML::&#95;('content.prepare',preg&#95;replace('##i','',$this-&gt;element-&gt;recept)); ?&gt;   Can someone help me with this?")*

Now i have a much bigger problem. I backed up the show_tabular file and removed it on the server. Then i have published a new show_tabular file and everything looks different. So I copied the backup show_tabular file back where it was but it doesn't work anymore. In the attachements you see the product page before and after. ![:(](/media/kunena/emoticons/22.png ":(")

- [ ![1&#95;2016-04-08.jpg](/forum/attachment/30519) ](/forum/attachment/30519 "1&#95;2016-04-08.jpg") [ ](/forum/attachment/30519?download=1 "1&#95;2016-04-08.jpg")
- [ ![1b.jpg](/forum/attachment/30520) ](/forum/attachment/30520 "1b.jpg") [ ](/forum/attachment/30520?download=1 "1b.jpg")

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

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

10 years 6 months ago [\#235852](#235852) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Show tabular with custom fields](/forum/26-product-category-display/883575-show-tabular-with-custom-fields#235852 "I have created some extra tabs in the show&#95;tabular file.    Now i have to link them to the custom fieds i have made. I've put this code in the tabular file but it's not working:    php echo JHTML::&#95;('content.prepare',preg&#95;replace('##i','',$this-&gt;element-&gt;recept)); ?&gt;   Can someone help me with this?")*

Hi,

Don't you have restrictions on javascript due to your text editor settings ?
If it is, in the view the "&lt;script&gt;" tag will be renamed to something like "&lt;s-cript&gt;".

So you have to change the settings or edit via FTP.

If your issue is not related on that, please give us a backend access to your website via our contact form.
Don't forget to give a link to that topic in the email.
[ www.hikashop.com/support/contact-us.html](http://www.hikashop.com/support/contact-us.html)

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

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

10 years 6 months ago [\#236386](#236386) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Show tabular with custom fields](/forum/26-product-category-display/883575-show-tabular-with-custom-fields#236386 "I have created some extra tabs in the show&#95;tabular file.    Now i have to link them to the custom fieds i have made. I've put this code in the tabular file but it's not working:    php echo JHTML::&#95;('content.prepare',preg&#95;replace('##i','',$this-&gt;element-&gt;recept)); ?&gt;   Can someone help me with this?")*

Hi,

I edited the view "product / show_block_custom_main" on your website in order to use the value of the custom field from the main product if the value of the variant is empty.

So, problem solved !

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

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

Less More

- Posts: 7
- Thank you received: 0
-
-

10 years 6 months ago [\#236415](#236415) by [nancytoemen](/forum/user/36112-nancytoemen "View nancytoemen's Profile")  Replied by *[nancytoemen](/forum/user/36112-nancytoemen "View nancytoemen's Profile")* on topic *[Show tabular with custom fields](/forum/26-product-category-display/883575-show-tabular-with-custom-fields#236415 "I have created some extra tabs in the show&#95;tabular file.    Now i have to link them to the custom fieds i have made. I've put this code in the tabular file but it's not working:    php echo JHTML::&#95;('content.prepare',preg&#95;replace('##i','',$this-&gt;element-&gt;recept)); ?&gt;   Can someone help me with this?")*

Hmmm i think you didn't understand my issue. In the attachement you see how the product page looks like before i put the new code you provided in the show_tabular page. The looks of the page where great, but the tabs 'recept' and 'voedingswaarden' didn't work. I have backed up the file show_tabular and removed it from the server but the layout of the product page is a mess now. So i tried to put the backupped file back on the server again but the layout stays the same mess. It has to be as the attachement. So i have 2 problems now. The tabs are not showing (and the custom fields are now at the 'specifications page, this has to be 2 pages with the tabs 'recept' and 'voedingswaarden'). And the looks of the productpage are not what it meant to be (like the attachement).
I hope you can help me fix it again.. ![:(](/media/kunena/emoticons/22.png ":(")

- [ ![1&#95;2016-04-12.jpg](/forum/attachment/30621) ](/forum/attachment/30621 "1&#95;2016-04-12.jpg") [ ](/forum/attachment/30621?download=1 "1&#95;2016-04-12.jpg")

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

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

10 years 6 months ago [\#236462](#236462) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Show tabular with custom fields](/forum/26-product-category-display/883575-show-tabular-with-custom-fields#236462 "I have created some extra tabs in the show&#95;tabular file.    Now i have to link them to the custom fieds i have made. I've put this code in the tabular file but it's not working:    php echo JHTML::&#95;('content.prepare',preg&#95;replace('##i','',$this-&gt;element-&gt;recept)); ?&gt;   Can someone help me with this?")*

Hi,

Problem solved, there was missing css properties.
You potentially changed the value of the option "Front-end CSS File" in Configuration &gt; Display &gt; CSS.

And I added your desired tabs in the show_tabular view.

ps: We generally don't do this kind of things, it is customizations and not support ![;)](/media/kunena/emoticons/24.png ";)")

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

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

[](#top)
