Blenderbox Posted October 22, 2014 Share Posted October 22, 2014 Hi everyone, I’ve included the manufacturer name on product list this way: <a class="product-name" href="{$product.link|escape:'html':'UTF-8'}" title="{$product.name|escape:'html':'UTF-8'}" itemprop="url" > <span class="brand">{$product.manufacturer_name}</span> {$product.name|truncate:45:'...'|escape:'html':'UTF-8'} </a> But now I can’t get the manufacturer name on block specials module. I’ve tried this on blockspecials.tpl: <a class="product-name" href="{$special.link|escape:'html':'UTF-8'}" title="{$special.name|escape:'html':'UTF-8'}"> <span class="brand">{$special.manufacturer_name}</span> {$special.name|escape:'html':'UTF-8'} </a> But is not working. It says ‘undefined index manufacturer_name’. I’m using the default-bootstrap theme and the last version of prestashop. Someone knows how to do that? Thanks! Link to comment Share on other sites More sharing options...
musicmaster Posted October 22, 2014 Share Posted October 22, 2014 Use something like {$product|@print_r} in your tpl file and you will see all the valid names that you can use. Link to comment Share on other sites More sharing options...
Blenderbox Posted October 23, 2014 Author Share Posted October 23, 2014 Thanks for your answer! Now I see I can only get the id_manufacturer attribute. Any tip of how can I get the manufacturer name from the id? Thanks a lot! Link to comment Share on other sites More sharing options...
musicmaster Posted October 23, 2014 Share Posted October 23, 2014 Any tip of how can I get the manufacturer name from the id? If you have only a few manufacturers you could create your own array. But otherwise I don't have ideas that don't involve complicated changes in the source code. But there are other people around here with more expertise. Maybe they have an idea. Link to comment Share on other sites More sharing options...
Blenderbox Posted November 7, 2014 Author Share Posted November 7, 2014 If you have only a few manufacturers you could create your own array. But otherwise I don't have ideas that don't involve complicated changes in the source code. But there are other people around here with more expertise. Maybe they have an idea. Sorry for the delay. I did what you suggested and it works fine, although it would be nice to find a more permanent solution. Hoping some other ideas!! Thanks again! Link to comment Share on other sites More sharing options...
Recommended Posts