BenoitS Posted December 3, 2020 Share Posted December 3, 2020 (edited) HI everyone, I'm experiencing a quite weird issue on my products miniatures. For the products miniatures part of my category page the brand is not showing. I've checked on the code and there is no "display:none" on that element. But the weird stuff is if I add a product to my cart or if I include some products in others pages (from my CMS Elementor), the brands are now showing. You can see it in the enclosed screenshot. On the left side, a product added to my cart, and on the right side a product not added to my cart. Prestashop : 1.7.6.9 Theme : Warehouse If you have any idea, please let me know! Thanks a lot! Edited December 8, 2020 by BenoitS (see edit history) Link to comment Share on other sites More sharing options...
Guest Posted December 3, 2020 Share Posted December 3, 2020 Add to product list tpl file {$manufacturer.name} Link to comment Share on other sites More sharing options...
BenoitS Posted December 3, 2020 Author Share Posted December 3, 2020 12 minutes ago, Guest said: Add to product list tpl file {$manufacturer.name} Hi, thanks for your reply. Is-it the product-list.tpl file from catalogue/listing folder or from catalogue/partials/miniatures? Link to comment Share on other sites More sharing options...
Guest Posted December 3, 2020 Share Posted December 3, 2020 Unfortunately, I'm not at the computer today. Tomorrow I would give you an exact solution for a warehouse template. Link to comment Share on other sites More sharing options...
BenoitS Posted December 4, 2020 Author Share Posted December 4, 2020 Thanks a lot for your help! Link to comment Share on other sites More sharing options...
BenoitS Posted December 7, 2020 Author Share Posted December 7, 2020 On 12/3/2020 at 9:00 PM, Guest said: Unfortunately, I'm not at the computer today. Tomorrow I would give you an exact solution for a warehouse template. By any chance, did you have the time to have a look? Thanks a lot for your help! Link to comment Share on other sites More sharing options...
Guest Posted December 7, 2020 Share Posted December 7, 2020 I sent you a solution in a private message. Link to comment Share on other sites More sharing options...
BenoitS Posted December 7, 2020 Author Share Posted December 7, 2020 14 minutes ago, Guest said: I sent you a solution in a private message. Sorry but I I did not receive anything... Can you please share it again with me? Link to comment Share on other sites More sharing options...
Guest Posted December 7, 2020 Share Posted December 7, 2020 ./themes/warehouse/templates/catalog/_partials/miniatures/_partials/product-miniature-1.tpl or ./themes/warehouse/templates/catalog/_partials/miniatures/_partials/product-miniature-2.tpl or ./themes/warehouse/templates/catalog/_partials/miniatures/_partials/product-miniature-3.tpl find if exists: {block name='product_name'} <h3 class="h3 product-title"> <a href="{$product.canonical_url}">{$product.name|truncate:90:'...'}</a> </h3> {/block} {block name='product_brand'} {if isset($product.manufacturer_name ) && $product.manufacturer_name != ''} <div class="product-brand text-muted"> <a href="{$product.url}">{$product.manufacturer_name}</a></div>{/if} {/block} Link to comment Share on other sites More sharing options...
Guest Posted December 7, 2020 Share Posted December 7, 2020 If you use a block in which you do not see the names of the manufacturers, you must show the whole page, or which module for the product list is not shown to you by the manufacturer. Link to comment Share on other sites More sharing options...
Guest Posted December 7, 2020 Share Posted December 7, 2020 (edited) If you want to display the manufacturer in another module, you can use this code: {block name='product_brand'} {if Manufacturer::getNameById($product.id_manufacturer) !== ''} <div class="product-brand text-muted"> <a href="{$product.url}">{Manufacturer::getNameById($product.id_manufacturer)}</a></div>{/if} {/block} Edited December 7, 2020 by Guest (see edit history) Link to comment Share on other sites More sharing options...
Guest Posted December 7, 2020 Share Posted December 7, 2020 If you want to know exactly where the problem is, you have to share the e-shop address with me, for example in a private message. Link to comment Share on other sites More sharing options...
BenoitS Posted December 8, 2020 Author Share Posted December 8, 2020 13 hours ago, Guest said: ./themes/warehouse/templates/catalog/_partials/miniatures/_partials/product-miniature-1.tpl or ./themes/warehouse/templates/catalog/_partials/miniatures/_partials/product-miniature-2.tpl or ./themes/warehouse/templates/catalog/_partials/miniatures/_partials/product-miniature-3.tpl find if exists: {block name='product_name'} <h3 class="h3 product-title"> <a href="{$product.canonical_url}">{$product.name|truncate:90:'...'}</a> </h3> {/block} {block name='product_brand'} {if isset($product.manufacturer_name ) && $product.manufacturer_name != ''} <div class="product-brand text-muted"> <a href="{$product.url}">{$product.manufacturer_name}</a></div>{/if} {/block} I added your code and it works great! Thanks a lot Link to comment Share on other sites More sharing options...
Guest Posted December 8, 2020 Share Posted December 8, 2020 You can like my posts by clicking on the gray heart. I gladly helped. 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