Jump to content
cocof

Add Brand name to product page for PS1.7.1

Recommended Posts

Hi, 

I want to add the brand/manufacturer name to the product page (see attachment). I am using the classic theme and the prestashop 1.7.1.2 version.

Thanks,

 

Cocopost-1364397-0-84088900-1503848346_thumb.jpgpost-1364397-0-53328100-1503848352_thumb.jpg

Share this post


Link to post
Share on other sites
Le 07/09/2017 à 3:50 PM, klemonnier a dit :

{Manufacturer::getnamebyid($product.id_manufacturer)}

Try this. This code worked for me

so cool to find the right tip easyly ! thank you
it work with suppliers too!

Edited by eightman
added infos (see edit history)

Share this post


Link to post
Share on other sites
On 7/9/2017 at 3:50 PM, klemonnier said:

{Manufacturer::getnamebyid($product.id_manufacturer)}

Try this. This code worked for me

Where should i place that code part on the product.tpl file?

Share this post


Link to post
Share on other sites
On 9/7/2017 at 4:50 PM, klemonnier said:

{Manufacturer::getnamebyid($product.id_manufacturer)}

Try this. This code worked for me

Hi...

Where i need to add this code in products.tpl ?

Share this post


Link to post
Share on other sites

I just added it like this where I wanted it to show @pif2000

          {block name='BLOCK NAME YOU WANT TO GIVE IT'}          
            {Manufacturer::getnamebyid($product.id_manufacturer)}
          {/block}

Not sure where I can add styling to it and create the block on the BO so an update doesn't delete it, though.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More