How do I show the item code?

  • Posts: 7
  • Thank you received: 0
12 years 11 months ago #33969

Hello,
I am interested in showing the item code on the product page so that my customers gave something to reference. How can this be done? Thanks in advance for any information you can give.

Please Log in or Create an account to join the conversation.

  • Posts: 6
  • Thank you received: 0
12 years 11 months ago #33987

I would like to do the same. I found a reference to editing the CSS file but it doesn't seem to make any difference.

Please Log in or Create an account to join the conversation.

  • Posts: 82909
  • Thank you received: 13379
  • MODERATOR
12 years 11 months ago #34032

You can display the product code on the product page as explained there:
www.hikashop.com/en/support/documentatio...ng.html#product_code

If you don't see the difference, make sure that the custom file is selected for your front end CSS and save the configuration, and flush your browser's cache.

Please Log in or Create an account to join the conversation.

  • Posts: 6
  • Thank you received: 0
12 years 10 months ago #34060

Thanks, it works great, don't know what I did wrong before.
Another quick question, In product page I find the price doesn't show, there is a add to cart button and a stock quantity but no price, is this a CSS setting as well?

Please Log in or Create an account to join the conversation.

  • Posts: 7
  • Thank you received: 0
12 years 10 months ago #34072

I went to Configuration > Display Tab > CSS and changed the front end css by deleting the code .hikashop_product_code_main{ display:none; } and saved as instructed. The front end CSS displays that it is now custom, and then I flushed the cache. It is still not showing on the product page of my site. idealplan-it.com

Any thoughts?

Please Log in or Create an account to join the conversation.

  • Posts: 7
  • Thank you received: 0
12 years 10 months ago #34073

Never mind, now it popped up!

Another question though... it shows the item code right after the description, it the same size and font. Is there a way to distinguish it more? Same make it a smaller font or have the words "Item #:" in front of it?

Please Log in or Create an account to join the conversation.

  • Posts: 82909
  • Thank you received: 13379
  • MODERATOR
12 years 10 months ago #34091

If you don't see the price on the product page it's likely that you have the option "show prices" of the Display tab of the configuration turned off.

For the code style, you could add some CSS like that:
.hikashop_product_code_main{
font-size: 2em;
}

Please Log in or Create an account to join the conversation.

  • Posts: 7
  • Thank you received: 0
12 years 10 months ago #34104

Thanks for the info, that works... and I also added a color to it. (I don't do code. :) )

One last thing, I am looking for where I can add in some text "Item #" to show ahead of the item code. Where would that go?

Please Log in or Create an account to join the conversation.

  • Posts: 82909
  • Thank you received: 13379
  • MODERATOR
12 years 10 months ago #34142

You would have to edit the file "show" of the view "product" for your template via the menu Display->Views and add it after the code:
<span id="hikashop_product_code_main" class="hikashop_product_code_main">

Please Log in or Create an account to join the conversation.

Time to create page: 0.080 seconds
Powered by Kunena Forum