Jump to content

[SOLVED] Help with Manufacturer List


Recommended Posts

I have the module for the manufacturer list installed - working okay. However, none of my manufacturers have logo pictures.
1. How do I remove the "no image available" from the list?
2. Is there a way to temporarily disable the "Manufacturer" link in the block header, so customers cannot see the list?
3. Where do I go to edit the colors, etc. for the Manufacturers list page?

Thank you!

Link to comment
Share on other sites

1. Since you don't have any logos, you can remove them altogether. Just edit manufacturer-list.tpl in your theme's directory and change lines 25-30 (in PrestaShop v1.3.1) from:

<!-- logo -->

{if $manufacturer.nb_products > 0}<a href="{$link->getmanufacturerLink($manufacturer.id_manufacturer, $manufacturer.link_rewrite)|escape:'htmlall':'UTF-8'}" title="{$manufacturer.name|escape:'htmlall':'UTF-8'}">{/if}
   <img src="{$img_manu_dir}{$manufacturer.image|escape:'htmlall':'UTF-8'}-medium.jpg" alt="" />
{if $manufacturer.nb_products > 0}{/if}



to:

{*<!-- logo -->

{if $manufacturer.nb_products > 0}<a href="{$link->getmanufacturerLink($manufacturer.id_manufacturer, $manufacturer.link_rewrite)|escape:'htmlall':'UTF-8'}" title="{$manufacturer.name|escape:'htmlall':'UTF-8'}">{/if}
   <img src="{$img_manu_dir}{$manufacturer.image|escape:'htmlall':'UTF-8'}-medium.jpg" alt="" />
{if $manufacturer.nb_products > 0}{/if}
*}



2. Change line 3 of modules/blockmanufacturer/blockmanufacturer.tpl from:

<a href="{$base_dir}manufacturer.php" title="{l s='Manufacturers' mod='blockmanufacturer'}">{l s='Manufacturers' mod='blockmanufacturer'}



to:

{**}{l s='Manufacturers' mod='blockmanufacturer'}{**}



When you want the link back again, take out the {* *}.

3. Edit the /* manufacturers-list.tpl && suppliers-list.tpl */ section of css/global.css in your theme's directory.

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...