Display brand name in Title

  • Posts: 81
  • Thank you received: 6
11 years 4 months ago #78672

How can i display the brand name of products in the title...

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

  • Posts: 12953
  • Thank you received: 1778
11 years 4 months ago #78693

Hi,

I think that you'll just have to :
- Go to "Hikashop->Display->Views"
- Edit the Show_default file of the product view of your front-end template that you are curently using
- Add this code :

<?php $class = hikashop_get('class.category');
$manufacturer = $class->get($this->element->product_manufacturer_id);
echo $manufacturer->category_name; ?>

Hope this will help you.

The following user(s) said Thank You: foxy3433

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

  • Posts: 81
  • Thank you received: 6
11 years 3 months ago #80274

Is there a way to get the manufactures name on the Product Listing Page via the file listing_img_title as when i add the code you gave me nothing happens...


Can you help Mohamed Thelji

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

  • Posts: 13201
  • Thank you received: 2322
11 years 3 months ago #80351

Hi, try to add this one:

<?php $class = hikashop_get('class.category');
$manufacturer = $class->get($this->row->product_manufacturer_id);
echo $manufacturer->category_name; ?>
Just before: <!-- PRODUCT NAME -->

The following user(s) said Thank You: foxy3433

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

  • Posts: 81
  • Thank you received: 6
11 years 3 months ago #80420

Added the wrong one thank you

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

Time to create page: 0.085 seconds
Powered by Kunena Forum