SOLVED - Show product_code under name

  • Posts: 37
  • Thank you received: 1
13 years 3 months ago #24491

I would like to be able to show the product_code under the product name on the listing pages and in the individual product pages so that users can refer to a particular number when calling the shop?

How is this possible?

Thanks in advance for your help!

Last edit: 13 years 2 months ago by Arathol.

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

  • Posts: 82868
  • Thank you received: 13377
  • MODERATOR
13 years 2 months ago #24503

On the product page, you can just do it by removing some CSS:
www.hikashop.com/support/documentation/8...ng.html#product_code

For the products listings, you will have to edit the layout file your using of the view "product" via the menu Display->Views and change the code there to display the product code.

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

  • Posts: 37
  • Thank you received: 1
13 years 2 months ago #24509

Thanks for your reply Nicolas.

I'm not sure how or what code to put on the view "product"? Is it possible you code just give me the lines of code. I'm sure i can figure out where to put it in the file.

Thanks!

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

  • Posts: 82868
  • Thank you received: 13377
  • MODERATOR
13 years 2 months ago #24511

It's just that code: <?php echo $row->product_code; ?>

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

  • Posts: 37
  • Thank you received: 1
13 years 2 months ago #24754

Hi Nicolas,

Thanks for the code, but it doesn't seem to work so I dontknow if i'm missing something out.

I added this in the "product / listing_img_title.php" :

<!-- PRODUCT CODE -->
<span class="hikashop_product_code">
Art: <?php echo $row->product_code; ?>
</span>
<!-- EO PRODUCT CODE -->

It shows the "Art: " on the page in the right place, but the code isnt showing next to it?

Pleas ehelp.

Thanks in advance!

Last edit: 13 years 2 months ago by Arathol.

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

  • Posts: 82868
  • Thank you received: 13377
  • MODERATOR
13 years 2 months ago #24756

My mistake. It's
$this->row->product_code;
and not
$row->product_code;

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

  • Posts: 37
  • Thank you received: 1
13 years 2 months ago #24881

Thanks! Worked like a charm.

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

Time to create page: 0.059 seconds
Powered by Kunena Forum