How do i show product code on frontend?

  • Posts: 218
  • Thank you received: 6
12 years 11 months ago #37309

How do i show the SKU/Product Code on the frontend product page. The customer needs to see the Product Code as well.

thanks

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

  • Posts: 63
  • Thank you received: 2
12 years 11 months ago #37317

In your CSS file
comment display:none; as below


.hikashop_product_code_main{
/**display:none;**/
}


I hope this will help.

Last edit: 12 years 11 months ago by leowaqqas.

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

  • Posts: 218
  • Thank you received: 6
12 years 11 months ago #37423

thanks, that now shows the product code but it is just added to the end of the product name.

I would like to actually have it show like

Product Code: SKLT

down next to the variant dropdowns.

how might this be done?

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

  • Posts: 63
  • Thank you received: 2
12 years 11 months ago #37460

in your components\com_hikashop\views\product\tmpl\show.php (use override)

move these lines of code where you want to show them

<span id="hikashop_product_code_main" class="hikashop_product_code_main">

<?php echo $this->element->product_code;?> <br /><br />

</span>

The following user(s) said Thank You: woonydanny

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

Time to create page: 0.068 seconds
Powered by Kunena Forum