Jump to content
thirty bees forum
  • 0

Manufacturer logo on product page



4 answers to this question

Recommended Posts

  • 0


you can add something like this in your product.tpl file in theme folder :


            {if $product_manufacturer->id}
                <img src="{$img_manu_dir}{$product_manufacturer->id}-medium_default.jpg" class="logo_manufacturer img-responsive" title="{$product_manufacturer->name}" alt="{$product_manufacturer->name}" />


  • Like 1
Link to comment
Share on other sites

  • 0

Thank ypu! 


One note - for Niara theme there are other names of image files. 

For me worket the following

 {if $product_manufacturer->id}
                <img src="{$img_manu_dir}{$product_manufacturer->id}.jpg" class="logo_manufacturer img-responsive" title="{$product_manufacturer->name}" alt="{$product_manufacturer->name}" />

Link to comment
Share on other sites

  • 0

I was on another thread just now that links to this.

My version has the bits of code layed-out in a list because I don't know how it should work and have to read closely.

I also changed the Alt and Title links to show the Meta_description,  so that it shows on mousover.
I didn't work out how to show the logo on the same line as the manufacturer name, but it works well enough to use.

        {if $product->id_manufacturer > 0}
          <p itemprop="brand" itemscope itemtype="https://schema.org/Brand">
            <b>{l s='Manufacturer:'}</b>
            <a itemprop="url" 
              <span itemprop="name">{$product->manufacturer_name}</span>
                height="30" {*or it could be set from css for this class*}
                class="logo_manufacturer img-responsive" 
                alt="{$product_manufacturer->meta_description}" />


Edited by veganline
  • Thanks 2
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...