Jump to content

Welcome, Guest!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

  • 0
Gudron11

Manufacturer logo on product page

Question

Good day!

 

How can I add a logo of a manufacturer on a product page in TB 1.1.0 ?

 

 

Share this post


Link to post
Share on other sites

3 answers to this question

Recommended Posts

  • 0

Hello,

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}" />
            {/if}

 

  • Like 1

Share this post


Link to post
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}" />
{/if}
 

Share this post


Link to post
Share on other sites
  • 0

Its better to check if variable exists before looking for id.

{if isset($product_manufacturer) && $product_manufacturer->id}

Share this post


Link to post
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...