dashmir Posted May 23, 2019 Share Posted May 23, 2019 Love community I would like the logo of the manufacturer to appear above the product title. I have found some posts, but they are very old or the links to tutorials do not work. Can someone help me here and say which file and especially which code needs to be added exactly to make sure the logo is displayed in the right place? i have the perstashop version 1.7.5.1 and i do not use the default template. thank in advance for your help. Link to comment Share on other sites More sharing options...
Nishith Nesdiya Posted May 24, 2019 Share Posted May 24, 2019 Hi.. you need to modify the product.tpl file which is locate in themes/yourthemes/templates/catalog/product.tpl if you use "classic" default themes then put this code approx. line number 78 see image herehttps://ibb.co/7C3f2xZ {if isset($product_manufacturer->id)} <div class="product-manufacturer"> {if isset($manufacturer_image_url)} <a href="{$product_brand_url}"> <img src="{$manufacturer_image_url}" class="img img-thumbnail manufacturer-logo" alt="{$product_manufacturer->name}"> </a> {else} <label class="label">{l s='Brand' d='Shop.Theme.Catalog'}</label> <span> <a href="{$product_brand_url}">{$product_manufacturer->name}</a> </span> {/if} </div> {/if} Thanks Link to comment Share on other sites More sharing options...
dashmir Posted May 24, 2019 Author Share Posted May 24, 2019 vor 3 Stunden schrieb Nishith: Hi.. you need to modify the product.tpl file which is locate in themes/yourthemes/templates/catalog/product.tpl if you use "classic" default themes then put this code approx. line number 78 see image herehttps://ibb.co/7C3f2xZ {if isset($product_manufacturer->id)} <div class="product-manufacturer"> {if isset($manufacturer_image_url)} <a href="{$product_brand_url}"> <img src="{$manufacturer_image_url}" class="img img-thumbnail manufacturer-logo" alt="{$product_manufacturer->name}"> </a> {else} <label class="label">{l s='Brand' d='Shop.Theme.Catalog'}</label> <span> <a href="{$product_brand_url}">{$product_manufacturer->name}</a> </span> {/if} </div> {/if} Thanks Hiii thank you very much, that was so helpful, i have add this code to my template and it works: Can you tell me, how can i make a space between the Logo and the title? thanks in advanced for your help. Link to comment Share on other sites More sharing options...
Nishith Nesdiya Posted May 25, 2019 Share Posted May 25, 2019 Hi.. yes put this code in your themes custom.css end of the file which is locate in themes/yourthemes/assets/css/product.tpl .product-manufacturer{ margin-bottom: 15px; } Thanks Link to comment Share on other sites More sharing options...
dashmir Posted June 4, 2019 Author Share Posted June 4, 2019 Am 25.5.2019 um 7:41 AM schrieb Nishith: Hi.. yes put this code in your themes custom.css end of the file which is locate in themes/yourthemes/assets/css/product.tpl .product-manufacturer{ margin-bottom: 15px; } Thanks Sorry for the delay. but that was the solutions. thank you very much 🙂 on the front site, are the products (featured, new Products, best sellers) in one row. i want to add the manufacture logo an the thumbnails. an example is attached as a picture. I think I have found the right file: /httpdocs/themes/PRS01/templates/catalog/_partials/miniatures/product.tpl can you give me a hint what and where I have to insert exactly? thank you in advance for your help. dashmir Link to comment Share on other sites More sharing options...
dashmir Posted June 4, 2019 Author Share Posted June 4, 2019 i have an other question... I want the brand before the product name, i think the variable are this here {$product_manufacturer->name} this Variable have to be on this place: <div class="col-md-6 pb-right-column"> {block name='page_header_container'} {block name='page_header'} <h1 class="h1 tt-producttitle" itemprop="name">{block name='page_title'}{$product.name}{/block}</h1> {/block} {/block} I do not know how to insert the variable so that it is displayed correctly. /httpdocs/themes/PRS01/templates/catalog/product.tpl Example thanks in advance for your help Link to comment Share on other sites More sharing options...
Nishith Nesdiya Posted June 6, 2019 Share Posted June 6, 2019 (edited) Hi..you have right way going see below my code if you need display before the product name then put like this {block name='page_header_container'} {block name='page_header'} <h1 class="h1 tt-producttitle" itemprop="name"> {block name='page_title'} {if isset($product_manufacturer->id)} {$product_manufacturer->name} - {$product.name} {else} {$product.name} {/if} {/block} </h1> {/block} {/block} Thanks Edited June 6, 2019 by Nishith (see edit history) Link to comment Share on other sites More sharing options...
dashmir Posted June 6, 2019 Author Share Posted June 6, 2019 vor 3 Stunden schrieb Nishith: Hi..you have right way going see below my code if you need display before the product name then put like this {block name='page_header_container'} {block name='page_header'} <h1 class="h1 tt-producttitle" itemprop="name"> {block name='page_title'} {if isset($product_manufacturer->id)} {$product_manufacturer->name} - {$product.name} {else} {$product.name} {/if} {/block} </h1> {/block} {/block} Thanks thank you very much. it works 🙂 Link to comment Share on other sites More sharing options...
dashmir Posted June 6, 2019 Author Share Posted June 6, 2019 Am 4.6.2019 um 9:51 AM schrieb dashmir: Sorry for the delay. but that was the solutions. thank you very much 🙂 on the front site, are the products (featured, new Products, best sellers) in one row. i want to add the manufacture logo an the thumbnails. an example is attached as a picture. I think I have found the right file: /httpdocs/themes/PRS01/templates/catalog/_partials/miniatures/product.tpl can you give me a hint what and where I have to insert exactly? thank you in advance for your help. dashmir do you have an idea for this request? 😐 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now