Skip to main content

How do i show product code on frontend?

More
14 years 7 months ago #37309 by woonydanny
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.

More
14 years 7 months ago - 14 years 7 months ago #37317 by leowaqqas
In your CSS file
comment display:none; as below


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


I hope this will help.
Last edit: 14 years 7 months ago by leowaqqas.

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

More
14 years 7 months ago #37423 by woonydanny
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.

More
14 years 7 months ago #37460 by leowaqqas
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.205 seconds
Powered by Kunena Forum