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

#   display product code

##

- **[dontflinch](/forum/user/1234-dontflinch "View dontflinch's Profile")**
- [![dontflinch's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar1234.jpg)](/forum/user/1234-dontflinch "View dontflinch's Profile") Topic Author
- [ Offline](/forum/user/1234-dontflinch)

Less More

- Posts: 52
- Thank you received: 0
-
-

15 years 7 months ago [\#11795](#11795) by [dontflinch](/forum/user/1234-dontflinch "View dontflinch's Profile")  *[display product code](/forum/4-how-to/11795-display-product-code#11795 "Hi,  I feel like I must be missing this setting somewhere and I have searched the forums and do not see this topic.  I want the product code to appear on the listings - both the category listing and the individual product details.  is this a setting or is there some edit I can make to the view files?  thank for your help.")* was created by *[dontflinch](/forum/user/1234-dontflinch "View dontflinch's Profile")*

Hi,

I feel like I must be missing this setting somewhere and I have searched the forums and do not see this topic.

I want the product code to appear on the listings - both the category listing and the individual product details.

is this a setting or is there some edit I can make to the view files?

thank for your help.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzExNzk1LWRpc3BsYXktcHJvZHVjdC1jb2RlP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) 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: 86322
- Thank you received: 14281
-
-

15 years 7 months ago [\#11797](#11797) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: display product code](/forum/4-how-to/11795-display-product-code#11797 "Hi,  I feel like I must be missing this setting somewhere and I have searched the forums and do not see this topic.  I want the product code to appear on the listings - both the category listing and the individual product details.  is this a setting or is there some edit I can make to the view files?  thank for your help.")*

Hi

For the product page, you can just remove the CSS:
.hikashop_product_code_main {
display: none;
}

from the front end css file of hikashop (you can edit it in the config under the tab display).

For the listings, the product code is actually not displayed at all. So you will have to edit the file listing_img_title of the view product via the menu Display-&gt;Views and add the code:
echo $this-&gt;row-&gt;product_code;
before or after the code:
echo $this-&gt;row-&gt;product_name;

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzExNzk1LWRpc3BsYXktcHJvZHVjdC1jb2RlP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

- **[dontflinch](/forum/user/1234-dontflinch "View dontflinch's Profile")**
- [![dontflinch's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar1234.jpg)](/forum/user/1234-dontflinch "View dontflinch's Profile") Topic Author
- [ Offline](/forum/user/1234-dontflinch)

Less More

- Posts: 52
- Thank you received: 0
-
-

15 years 7 months ago [\#11800](#11800) by [dontflinch](/forum/user/1234-dontflinch "View dontflinch's Profile")  Replied by *[dontflinch](/forum/user/1234-dontflinch "View dontflinch's Profile")* on topic *[Re: display product code](/forum/4-how-to/11795-display-product-code#11800 "Hi,  I feel like I must be missing this setting somewhere and I have searched the forums and do not see this topic.  I want the product code to appear on the listings - both the category listing and the individual product details.  is this a setting or is there some edit I can make to the view files?  thank for your help.")*

thank you for the quick response!

the css did the trick very well on the individual view, thanks.

the edit of the listing_img_title does not seem to do anything.

since I had already adjusted the price to show under the name I am sure I am in the right file.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzExNzk1LWRpc3BsYXktcHJvZHVjdC1jb2RlP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) 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: 86322
- Thank you received: 14281
-
-

15 years 7 months ago [\#11805](#11805) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: display product code](/forum/4-how-to/11795-display-product-code#11805 "Hi,  I feel like I must be missing this setting somewhere and I have searched the forums and do not see this topic.  I want the product code to appear on the listings - both the category listing and the individual product details.  is this a setting or is there some edit I can make to the view files?  thank for your help.")*

You need to double check your modifications because that change works.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzExNzk1LWRpc3BsYXktcHJvZHVjdC1jb2RlP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

- **[dontflinch](/forum/user/1234-dontflinch "View dontflinch's Profile")**
- [![dontflinch's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar1234.jpg)](/forum/user/1234-dontflinch "View dontflinch's Profile") Topic Author
- [ Offline](/forum/user/1234-dontflinch)

Less More

- Posts: 52
- Thank you received: 0
-
-

15 years 7 months ago [\#11810](#11810) by [dontflinch](/forum/user/1234-dontflinch "View dontflinch's Profile")  Replied by *[dontflinch](/forum/user/1234-dontflinch "View dontflinch's Profile")* on topic *[Re: display product code](/forum/4-how-to/11795-display-product-code#11810 "Hi,  I feel like I must be missing this setting somewhere and I have searched the forums and do not see this topic.  I want the product code to appear on the listings - both the category listing and the individual product details.  is this a setting or is there some edit I can make to the view files?  thank for your help.")*

hello, I have double checked. I will attach a screenshot since html/php mix does not render well here. I must be missing something. thanks again for the quick replies. image missing http://www.hikashop.com/media/kunena/attachments/legacy/images/hika1-20110323.jpg

- [ ![hika1-20110323.jpg](/forum/attachment/782) ](/forum/attachment/782 "...1-20110323.jpg") [ ](/forum/attachment/782?download=1 "...1-20110323.jpg")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzExNzk1LWRpc3BsYXktcHJvZHVjdC1jb2RlP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) 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: 86322
- Thank you received: 14281
-
-

15 years 7 months ago [\#11816](#11816) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: display product code](/forum/4-how-to/11795-display-product-code#11816 "Hi,  I feel like I must be missing this setting somewhere and I have searched the forums and do not see this topic.  I want the product code to appear on the listings - both the category listing and the individual product details.  is this a setting or is there some edit I can make to the view files?  thank for your help.")*

Just to make sure, please add temporarily an exit; after the product code line. That will stop the processing of the page and you should see the first product code at the end of the page. If you don't see any change to the listing, that means that you're not editing the good file.
There is no reason the product code would not be displayed with the modification you did unless you're not in the good file.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzExNzk1LWRpc3BsYXktcHJvZHVjdC1jb2RlP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

- **[dontflinch](/forum/user/1234-dontflinch "View dontflinch's Profile")**
- [![dontflinch's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar1234.jpg)](/forum/user/1234-dontflinch "View dontflinch's Profile") Topic Author
- [ Offline](/forum/user/1234-dontflinch)

Less More

- Posts: 52
- Thank you received: 0
-
-

15 years 7 months ago [\#11859](#11859) by [dontflinch](/forum/user/1234-dontflinch "View dontflinch's Profile")  Replied by *[dontflinch](/forum/user/1234-dontflinch "View dontflinch's Profile")* on topic *[Re: display product code](/forum/4-how-to/11795-display-product-code#11859 "Hi,  I feel like I must be missing this setting somewhere and I have searched the forums and do not see this topic.  I want the product code to appear on the listings - both the category listing and the individual product details.  is this a setting or is there some edit I can make to the view files?  thank for your help.")*

this is very weird. I will have to investigate further.

I edited the listing_img_title file (with an exit and also just a random echo to see) and it does nothing.

and yet if I look in ftp in com_hiksahop I can see that it is not using that view&gt;product&gt;tmpl file but is pulling from the one in my template&gt;html&gt;product&gt;com_hikashop because in the edited file the price is after the name. I tried placing the code bit in the component one just to see and it doesn't work from there either.

please let me know if you think of anything else (like maybe the table row wasn't called? - I'm just basic in php) and I will update if/when I figure out wtf is going on.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzExNzk1LWRpc3BsYXktcHJvZHVjdC1jb2RlP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

- **[dontflinch](/forum/user/1234-dontflinch "View dontflinch's Profile")**
- [![dontflinch's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar1234.jpg)](/forum/user/1234-dontflinch "View dontflinch's Profile") Topic Author
- [ Offline](/forum/user/1234-dontflinch)

Less More

- Posts: 52
- Thank you received: 0
-
-

15 years 7 months ago [\#11869](#11869) by [dontflinch](/forum/user/1234-dontflinch "View dontflinch's Profile")  Replied by *[dontflinch](/forum/user/1234-dontflinch "View dontflinch's Profile")* on topic *[Re: display product code](/forum/4-how-to/11795-display-product-code#11869 "Hi,  I feel like I must be missing this setting somewhere and I have searched the forums and do not see this topic.  I want the product code to appear on the listings - both the category listing and the individual product details.  is this a setting or is there some edit I can make to the view files?  thank for your help.")*

ok I feel like I am losing my mind.

I have dumped every single mod'd file (the four little trash cans) in admin backend. I double checked in ftp and deleted the whole com_hikashop folder from my_template (beez20)&gt;html folder. however, the price is still below the name. I have no idea where that is happening!

I have not only F5'd but even opened a completely new browser just to be sure and it is still loading the name then the price below, like I had mod'd it in the files that are now gone!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzExNzk1LWRpc3BsYXktcHJvZHVjdC1jb2RlP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) 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: 86322
- Thank you received: 14281
-
-

15 years 7 months ago [\#11870](#11870) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: display product code](/forum/4-how-to/11795-display-product-code#11870 "Hi,  I feel like I must be missing this setting somewhere and I have searched the forums and do not see this topic.  I want the product code to appear on the listings - both the category listing and the individual product details.  is this a setting or is there some edit I can make to the view files?  thank for your help.")*

Maybe you modified directly the listing_img_title.php file in the folder components/com_hikashop/views/product/tmpl ?
Or maybe you're using another template ? Or maybe you have the joomla cache activated (not your browser) in the joomla config ?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzExNzk1LWRpc3BsYXktcHJvZHVjdC1jb2RlP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

- **[dontflinch](/forum/user/1234-dontflinch "View dontflinch's Profile")**
- [![dontflinch's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar1234.jpg)](/forum/user/1234-dontflinch "View dontflinch's Profile") Topic Author
- [ Offline](/forum/user/1234-dontflinch)

Less More

- Posts: 52
- Thank you received: 0
-
-

15 years 7 months ago -  15 years 7 months ago [\#11871](#11871) by [dontflinch](/forum/user/1234-dontflinch "View dontflinch's Profile")  Replied by *[dontflinch](/forum/user/1234-dontflinch "View dontflinch's Profile")* on topic *[Re: display product code](/forum/4-how-to/11795-display-product-code#11871 "Hi,  I feel like I must be missing this setting somewhere and I have searched the forums and do not see this topic.  I want the product code to appear on the listings - both the category listing and the individual product details.  is this a setting or is there some edit I can make to the view files?  thank for your help.")*

**nicolas wrote:**

> Maybe you modified directly the listing\_img\_title.php file in the folder components/com\_hikashop/views/product/tmpl ?

TRIPLE checking that now

> Or maybe you're using another template ?

nope sure on that (and even though sure, checked every template folder to be sure, lol)

> Or maybe you have the joomla cache activated (not your browser) in the joomla config ?

nope I never use that but even did the purge expired cache to be sure.

now you see why I say I feel like I am losing my mind. lol

Last edit: 15 years 7 months ago by [dontflinch](/forum/user/1234-dontflinch "View dontflinch's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzExNzk1LWRpc3BsYXktcHJvZHVjdC1jb2RlP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

- **[dontflinch](/forum/user/1234-dontflinch "View dontflinch's Profile")**
- [![dontflinch's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar1234.jpg)](/forum/user/1234-dontflinch "View dontflinch's Profile") Topic Author
- [ Offline](/forum/user/1234-dontflinch)

Less More

- Posts: 52
- Thank you received: 0
-
-

15 years 7 months ago [\#11872](#11872) by [dontflinch](/forum/user/1234-dontflinch "View dontflinch's Profile")  Replied by *[dontflinch](/forum/user/1234-dontflinch "View dontflinch's Profile")* on topic *[Re: display product code](/forum/4-how-to/11795-display-product-code#11872 "Hi,  I feel like I must be missing this setting somewhere and I have searched the forums and do not see this topic.  I want the product code to appear on the listings - both the category listing and the individual product details.  is this a setting or is there some edit I can make to the view files?  thank for your help.")*

ok, I finally deleted the entire listing_img_title.php file and didn't break anything so I looked in listing_title and voila. that's where I made the edit I guess? I added the echo $this-&gt;row-&gt;product_code; there and bingo it worked. that's what I get for flailing around in the code late at night. hahaa

thanks for your help.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzExNzk1LWRpc3BsYXktcHJvZHVjdC1jb2RlP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) 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: 86322
- Thank you received: 14281
-
-

15 years 7 months ago [\#11875](#11875) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: display product code](/forum/4-how-to/11795-display-product-code#11875 "Hi,  I feel like I must be missing this setting somewhere and I have searched the forums and do not see this topic.  I want the product code to appear on the listings - both the category listing and the individual product details.  is this a setting or is there some edit I can make to the view files?  thank for your help.")*

I'm glad you figured it out ![:)](/media/kunena/emoticons/3.png ":)")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzExNzk1LWRpc3BsYXktcHJvZHVjdC1jb2RlP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) 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.248 seconds

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