stkramer Posted May 28, 2013 Share Posted May 28, 2013 (edited) 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 June 3, 2013 by stkramer (see edit history) Link to comment Share on other sites More sharing options...
NemoPS Posted May 31, 2013 Share Posted May 31, 2013 Hi, it should be as simple as adding an anchor link for the heading, with the following code to get the page {$link->getPageLink('manufacturer', true)} 1 Link to comment Share on other sites More sharing options...
stkramer Posted June 1, 2013 Author Share Posted June 1, 2013 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 More sharing options...
NemoPS Posted June 1, 2013 Share Posted June 1, 2013 Well it's not strictly necessary. But in this case it should already be linking to the manufacturers list page, so what's the issue with it? Link to comment Share on other sites More sharing options...
stkramer Posted June 1, 2013 Author Share Posted June 1, 2013 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 More sharing options...
NemoPS Posted June 1, 2013 Share Posted June 1, 2013 Your manufacturer block has code from block categories? I hope you didn't pay for such a theme! In any case, just copy over the heading in that file Link to comment Share on other sites More sharing options...
stkramer Posted June 2, 2013 Author Share Posted June 2, 2013 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 More sharing options...
NemoPS Posted June 3, 2013 Share Posted June 3, 2013 Weird, can you check that you're displaying supplier and manufacturers in preferences-> general? Maybe you turned that off as it's on by default Link to comment Share on other sites More sharing options...
stkramer Posted June 3, 2013 Author Share Posted June 3, 2013 That did the trick! Thanks. Marked this one as solved. Link to comment Share on other sites More sharing options...
robbie007 Posted March 16, 2014 Share Posted March 16, 2014 Hi Nemo, Do you know how to add a text link to the manufacturer on productpage? Want to add it to the breadcrumb. If you have better ideas, then they are always welcome. Best regards, Robert Link to comment Share on other sites More sharing options...
NemoPS Posted March 17, 2014 Share Posted March 17, 2014 Hi Robert, you can try this <a href="{$link->getManufacturerLink($product->id_manufacturer)}"> {$product->manufacturer_name} </a> 1 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