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

#   characteristic code showing in front end -

##

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

Less More

- Posts: 37
- Thank you received: 2
-
-

13 years 11 months ago [\#80180](#80180) by [karlvann](/forum/user/7701-karlvann "View karlvann's Profile")  *[characteristic code showing in front end -](/forum/2-general-talk-about-hikashop/76408-characteristic-code-showing-in-front-end#80180 "When I choose a characteristic from the dropdown, it then displays the characteristic code in the title, It used to show the only the characteristic name, It's possible that this changed in the update, not sure..  I found this statement in an old post about a similar situation  &quot;I already told you that if you don't want the product code to appear, you should turn off the &quot;show product code&quot; option in the configuration.&quot;  I have turned off display product code however the problem remains, I have tried for an hour or two and I give up, can anyone help?    www.fullstopfurniture.com.au/Mattresses/...ttress-mattress-only")* was created by *[karlvann](/forum/user/7701-karlvann "View karlvann's Profile")*

When I choose a characteristic from the dropdown, it then displays the characteristic code in the title, It used to show the only the characteristic name, It's possible that this changed in the update, not sure..

I found this statement in an old post about a similar situation

"I already told you that if you don't want the product code to appear, you should turn off the "show product code" option in the configuration."

I have turned off display product code however the problem remains, I have tried for an hour or two and I give up, can anyone help?

[ www.fullstopfurniture.com.au/Mattresses/...ttress-mattress-only](http://www.fullstopfurniture.com.au/Mattresses/product/20-siesta-andorra-mattress-mattress-only)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzc2NDA4LWNoYXJhY3RlcmlzdGljLWNvZGUtc2hvd2luZy1pbi1mcm9udC1lbmQ/dG1wbD1tYXJrZG93bg==) 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: 4077
-
- [](http://obsi.dev)
-

13 years 11 months ago [\#80206](#80206) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[characteristic code showing in front end -](/forum/2-general-talk-about-hikashop/76408-characteristic-code-showing-in-front-end#80206 "When I choose a characteristic from the dropdown, it then displays the characteristic code in the title, It used to show the only the characteristic name, It's possible that this changed in the update, not sure..  I found this statement in an old post about a similar situation  &quot;I already told you that if you don't want the product code to appear, you should turn off the &quot;show product code&quot; option in the configuration.&quot;  I have turned off display product code however the problem remains, I have tried for an hour or two and I give up, can anyone help?    www.fullstopfurniture.com.au/Mattresses/...ttress-mattress-only")*

Hi,

Please edit the view "product &#124; show" and change the code Code:

&lt;?php } if (!empty($variant-&gt;product_code)){ ?&gt; &lt;div id="hikashop_product_code_&lt;?php echo $variant_name;?&gt;" style="display:none;"&gt; &lt;?php echo $variant-&gt;product_code;?&gt; &lt;/div&gt; &lt;?php } ?&gt;

By Code:

&lt;?php } if ($this-&gt;config-&gt;get('show_code') &amp;&amp; !empty($variant-&gt;product_code)){ ?&gt; &lt;div id="hikashop_product_code_&lt;?php echo $variant_name;?&gt;" style="display:none;"&gt; &lt;?php echo $variant-&gt;product_code;?&gt; &lt;/div&gt; &lt;?php } ?&gt;

It would link the option "show_code" to the variants product code too.
I will submit this patch, it may be added in the next HikaShop release.

Regards,

---

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

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

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

Less More

- Posts: 37
- Thank you received: 2
-
-

13 years 11 months ago [\#80309](#80309) by [karlvann](/forum/user/7701-karlvann "View karlvann's Profile")  Replied by *[karlvann](/forum/user/7701-karlvann "View karlvann's Profile")* on topic *[characteristic code showing in front end -](/forum/2-general-talk-about-hikashop/76408-characteristic-code-showing-in-front-end#80309 "When I choose a characteristic from the dropdown, it then displays the characteristic code in the title, It used to show the only the characteristic name, It's possible that this changed in the update, not sure..  I found this statement in an old post about a similar situation  &quot;I already told you that if you don't want the product code to appear, you should turn off the &quot;show product code&quot; option in the configuration.&quot;  I have turned off display product code however the problem remains, I have tried for an hour or two and I give up, can anyone help?    www.fullstopfurniture.com.au/Mattresses/...ttress-mattress-only")*

Hi, Thanks for the answer.

I don't know how to code and in viewing the file show.php in the view Product, I have not found the same code as you have shown, the closest I can find is this

&lt;?php } ?&gt;
&lt;div id="hikashop_product_name_&lt;?php echo $variant_name;?&gt;" style="display:none;"&gt;
&lt;?php echo $variant-&gt;product_name;?&gt;
&lt;/div&gt;
&lt;div id="hikashop_product_code_&lt;?php echo $variant_name;?&gt;" style="display:none;"&gt;
&lt;?php echo $variant-&gt;product_code;?&gt;
&lt;/div&gt;
&lt;div id="hikashop_product_price_&lt;?php echo $variant_name;?&gt;" style="display:none;"&gt;
&lt;?php

Where have I gone wrong here?

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

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

Less More

- Posts: 37
- Thank you received: 2
-
-

13 years 11 months ago [\#80313](#80313) by [karlvann](/forum/user/7701-karlvann "View karlvann's Profile")  Replied by *[karlvann](/forum/user/7701-karlvann "View karlvann's Profile")* on topic *[characteristic code showing in front end -](/forum/2-general-talk-about-hikashop/76408-characteristic-code-showing-in-front-end#80313 "When I choose a characteristic from the dropdown, it then displays the characteristic code in the title, It used to show the only the characteristic name, It's possible that this changed in the update, not sure..  I found this statement in an old post about a similar situation  &quot;I already told you that if you don't want the product code to appear, you should turn off the &quot;show product code&quot; option in the configuration.&quot;  I have turned off display product code however the problem remains, I have tried for an hour or two and I give up, can anyone help?    www.fullstopfurniture.com.au/Mattresses/...ttress-mattress-only")*

Also I should mention I am on joomla 2.5.8

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzc2NDA4LWNoYXJhY3RlcmlzdGljLWNvZGUtc2hvd2luZy1pbi1mcm9udC1lbmQ/dG1wbD1tYXJrZG93bg==) 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: 4077
-
- [](http://obsi.dev)
-

13 years 11 months ago -  13 years 11 months ago [\#80315](#80315) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[characteristic code showing in front end -](/forum/2-general-talk-about-hikashop/76408-characteristic-code-showing-in-front-end#80315 "When I choose a characteristic from the dropdown, it then displays the characteristic code in the title, It used to show the only the characteristic name, It's possible that this changed in the update, not sure..  I found this statement in an old post about a similar situation  &quot;I already told you that if you don't want the product code to appear, you should turn off the &quot;show product code&quot; option in the configuration.&quot;  I have turned off display product code however the problem remains, I have tried for an hour or two and I give up, can anyone help?    www.fullstopfurniture.com.au/Mattresses/...ttress-mattress-only")*

Hi,

The Joomla version is not important, the HikaShop version is.
You can replace the line Code:

&lt;?php echo $variant-&gt;product_code;?&gt;

By Code:

&lt;?php if ($this-&gt;config-&gt;get('show_code')) { echo $variant-&gt;product_code; } ?&gt;

Regards,

---

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

Last edit: 13 years 11 months ago by [Jerome](/forum/user/80-jerome "View Jerome's Profile").

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

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

Less More

- Posts: 37
- Thank you received: 2
-
-

13 years 11 months ago [\#80328](#80328) by [karlvann](/forum/user/7701-karlvann "View karlvann's Profile")  Replied by *[karlvann](/forum/user/7701-karlvann "View karlvann's Profile")* on topic *[characteristic code showing in front end -](/forum/2-general-talk-about-hikashop/76408-characteristic-code-showing-in-front-end#80328 "When I choose a characteristic from the dropdown, it then displays the characteristic code in the title, It used to show the only the characteristic name, It's possible that this changed in the update, not sure..  I found this statement in an old post about a similar situation  &quot;I already told you that if you don't want the product code to appear, you should turn off the &quot;show product code&quot; option in the configuration.&quot;  I have turned off display product code however the problem remains, I have tried for an hour or two and I give up, can anyone help?    www.fullstopfurniture.com.au/Mattresses/...ttress-mattress-only")*

sorry to keep nagging about this, I replaced the code and it's returning this error when I go to the product page

Parse error: syntax error, unexpected '{' in /home/fullstop/public_html/templates/yoo_cloud/html/com_hikashop/product/show.php on line 104

Not sure if it's related but I have installed hikashop business 2, however at the top of the php files it says

* @package HikaShop for Joomla!
* @version 1.5.8

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzc2NDA4LWNoYXJhY3RlcmlzdGljLWNvZGUtc2hvd2luZy1pbi1mcm9udC1lbmQ/dG1wbD1tYXJrZG93bg==) 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: 4077
-
- [](http://obsi.dev)
-

13 years 11 months ago [\#80329](#80329) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[characteristic code showing in front end -](/forum/2-general-talk-about-hikashop/76408-characteristic-code-showing-in-front-end#80329 "When I choose a characteristic from the dropdown, it then displays the characteristic code in the title, It used to show the only the characteristic name, It's possible that this changed in the update, not sure..  I found this statement in an old post about a similar situation  &quot;I already told you that if you don't want the product code to appear, you should turn off the &quot;show product code&quot; option in the configuration.&quot;  I have turned off display product code however the problem remains, I have tried for an hour or two and I give up, can anyone help?    www.fullstopfurniture.com.au/Mattresses/...ttress-mattress-only")*

Hi,

Sorry, parenthesis missing !
I have update the code in my previous post (with the missing character).

Regards,

---

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

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

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

Less More

- Posts: 37
- Thank you received: 2
-
-

13 years 11 months ago [\#80330](#80330) by [karlvann](/forum/user/7701-karlvann "View karlvann's Profile")  Replied by *[karlvann](/forum/user/7701-karlvann "View karlvann's Profile")* on topic *[characteristic code showing in front end -](/forum/2-general-talk-about-hikashop/76408-characteristic-code-showing-in-front-end#80330 "When I choose a characteristic from the dropdown, it then displays the characteristic code in the title, It used to show the only the characteristic name, It's possible that this changed in the update, not sure..  I found this statement in an old post about a similar situation  &quot;I already told you that if you don't want the product code to appear, you should turn off the &quot;show product code&quot; option in the configuration.&quot;  I have turned off display product code however the problem remains, I have tried for an hour or two and I give up, can anyone help?    www.fullstopfurniture.com.au/Mattresses/...ttress-mattress-only")*

Ahhh, My OCD is doing much better now, thanks for your time and effort..

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

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