Jump to content

Add manufacturer name on block specials


Recommended Posts

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

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

  • 3 weeks later...

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

×
×
  • Create New...