Jump to content

[SOLVED] Creat link to manufacturers list in manufacturer block header


Recommended Posts

Hi guys,

 

I have a small problem and I believe the solution should be very easy but I simply can't find it easily on the forums.

 

My manufacturers block in the left column does not have a link in the header to the manufacturers list (including logo's etc.). This probably needs to be adjusted in the manufacturer-list.tpl, but I do not know what to adjust.

 

I'm using versiong 1.5.4.1.

Here's the link to my website: http://emptybottles.nl/prestashop/

 

Thanks in advance!

Edited by stkramer (see edit history)
Link to comment
Share on other sites

I found the following code in blockmanufacturer.tpl

 

<div id="manufacturers_block_left" class="block blockmanufacturer">
<h4 class="title_block">{if $display_link_manufacturer}<a href="{$link->getPageLink('manufacturer')}" title="{l s='Manufacturers' mod='blockmanufacturer'}">{/if}{l s='Manufacturers' mod='blockmanufacturer'}{if $display_link_manufacturer}</a>{/if}</h4>
<div class="block_content">

 

It seems that the code you are referring to is already there. But only the 'true' is missing. Do I have to add that?

Link to comment
Share on other sites

I don't know. The link doesn't in the frontoffice. But I noted that the *.tpl file in the modules folder of my theme does not have the code for the link included. Could this be the problem?

 

That *.tpl files has only the following code:

 

<!-- Block categories module -->
<div id="categories_block_left" class="block">
<p class="title_block">{l s='Categories' mod='blockcategories'}</p>
<div class="block_content">
 <ul class="tree {if $isDhtml}dhtml{/if}">
 {foreach from=$blockCategTree.children item=child name=blockCategTree}
  {if $smarty.foreach.blockCategTree.last}
   {include file="$branche_tpl_path" node=$child last='true'}
  {else}
   {include file="$branche_tpl_path" node=$child}
  {/if}
 {/foreach}
 </ul>
 {* Javascript moved here to fix bug #PSCFI-151 *}
 <script type="text/javascript">
 // <![CDATA[
  // we hide the tree only if JavaScript is activated
  $('div#categories_block_left ul.dhtml').hide();
 // ]]>
 </script>
</div>
</div>
<!-- /Block categories module -->

Link to comment
Share on other sites

Oops! I copied the wrong code (from categories instead of manufacturers). The blockmanufacturer.tpl file includes the following code:

 

!-- Block manufacturers module -->
<div id="manufacturers_block_left" class="block blockmanufacturer">
<h4 class="title_block">{if $display_link_manufacturer}<a href="{$link->getPageLink('manufacturer')}" title="{l s='Manufacturers' mod='blockmanufacturer'}">{/if}{l s='Manufacturers' mod='blockmanufacturer'}{if $display_link_manufacturer}</a>{/if}</h4>
<div class="block_content">
{if $manufacturers}
{if $text_list}
<ul class="bullet">
{foreach from=$manufacturers item=manufacturer name=manufacturer_list}
 {if $smarty.foreach.manufacturer_list.iteration <= $text_list_nb}
 <li class="{if $smarty.foreach.manufacturer_list.last}last_item{elseif $smarty.foreach.manufacturer_list.first}first_item{else}item{/if}"><a href="{$link->getmanufacturerLink($manufacturer.id_manufacturer, $manufacturer.link_rewrite)}" title="{l s='Learn more about' mod='blockmanufacturer'} {$manufacturer.name}">{$manufacturer.name|escape:'htmlall':'UTF-8'}</a></li>
 {/if}
{/foreach}
</ul>
{/if}
{if $form_list}
 <form action="{$smarty.server.SCRIPT_NAME|escape:'htmlall':'UTF-8'}" method="get">
  <p>
   <select id="manufacturer_list" onchange="autoUrl('manufacturer_list', '');">
 <option value="0">{l s='All manufacturers' mod='blockmanufacturer'}</option>
   {foreach from=$manufacturers item=manufacturer}
 <option value="{$link->getmanufacturerLink($manufacturer.id_manufacturer, $manufacturer.link_rewrite)}">{$manufacturer.name|escape:'htmlall':'UTF-8'}</option>
   {/foreach}
   </select>
  </p>
 </form>
{/if}
{else}
<p>{l s='No manufacturer' mod='blockmanufacturer'}</p>
{/if}
</div>
</div>
<!-- /Block manufacturers module -->

 

Can you see what's going wrong?

Link to comment
Share on other sites

  • 9 months later...

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...