PerspectivesMarketin Posted May 31, 2017 Share Posted May 31, 2017 Hi, I use PrestaShop 1.6.1.13. I'im trying to display the manufacturer's name instead of the product's name but in vain so far. I managed to do it on the product list and product tempalte files, but somehow the variable doesn't work. Here is the code I'm trying to tweak, from the blockviewed.tpl <a class="product-name" href="{$viewedProduct->product_link|escape:'html':'UTF-8'}" title="{l s='More about %s' mod='blockviewed' sprintf=[$viewedProduct->name|escape:'html':'UTF-8']}"> {$viewedProduct->name|truncate:25:'...'|escape:'html':'UTF-8'} </a> I changed the line before last : {$product->manufacturer_name|escape:'html':'UTF-8'} but I get an "undefined index" error. I understand that it means the variable $product is not called on the blockviewed.tpl My question : how can I call the variable manufacturer_name into the blockviewed file ? Thanks a lot for your time, it is appreciated. 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