DARKF3D3 Posted September 4, 2012 Share Posted September 4, 2012 I'm making a custom footer but i don't understand how can i manually insert the category list, someone could help me? Link to comment Share on other sites More sharing options...
shacker Posted September 6, 2012 Share Posted September 6, 2012 something like this <script type="text/javascript" src="{$js_dir}tools/treeManagement.js"></script> <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> Link to comment Share on other sites More sharing options...
benjamin utterback Posted September 6, 2012 Share Posted September 6, 2012 Hello, thank you for the message. You can also take a look at the Add-On store, there are many different Footer Add-Ons available and some might fit your needs. Check it out! Thank you for choosing PrestaShop! Link to comment Share on other sites More sharing options...
DARKF3D3 Posted September 7, 2012 Author Share Posted September 7, 2012 Hello, thank you for the message. You can also take a look at the Add-On store, there are many different Footer Add-Ons available and some might fit your needs. Check it out! Thank you for choosing PrestaShop! I have tried some modules but are complete modules for footer, i already have my custom footer with cms and account link, now i need to add the categories. I know how to show it but static so every time i make a modify to the category i need also to modify the footer. something like this <script type="text/javascript" src="{$js_dir}tools/treeManagement.js"></script> <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> That code seem to works only sometimes, the first time it showed the category but when i have updated the page on the browser with F5 it doesn't work anymore. I don't undertand why... Link to comment Share on other sites More sharing options...
shacker Posted September 7, 2012 Share Posted September 7, 2012 strange. can you enable display errors on config/config.inc.php put display_errors to on Link to comment Share on other sites More sharing options...
DARKF3D3 Posted September 8, 2012 Author Share Posted September 8, 2012 (edited) It show this error: Notice: Undefined index: blockCategTree in /data/vhosts/xxxxxx.it/store/tools/smarty/compile/f70b560a2e6e8469904c99f60ef357aefeae39ca.file.footer.tpl.php on line 51 Notice: Trying to get property of non-object in /data/vhosts/xxxxxx.it/store/tools/smarty/compile/f70b560a2e6e8469904c99f60ef357aefeae39ca.file.footer.tpl.php on line 51 Edited September 8, 2012 by DARKF3D3 (see edit history) Link to comment Share on other sites More sharing options...
shacker Posted September 10, 2012 Share Posted September 10, 2012 seems like the module dont load the variable becouse smarty fails Clean the folder tools/smarty/compile and check again Link to comment Share on other sites More sharing options...
DARKF3D3 Posted September 10, 2012 Author Share Posted September 10, 2012 I have tried that but it show the category only the first time that i load the page, after that it doesn't show catagories anymore Link to comment Share on other sites More sharing options...
benjamin utterback Posted September 10, 2012 Share Posted September 10, 2012 Hello DARKF3D3, I will go ahead and move this thread over to the adapting PrestaShop forum. I think you will recieve better help there. Thank you for choosing PrestaShop. Link to comment Share on other sites More sharing options...
DARKF3D3 Posted September 11, 2012 Author Share Posted September 11, 2012 Thanks Benjamin Link to comment Share on other sites More sharing options...
DARKF3D3 Posted September 15, 2012 Author Share Posted September 15, 2012 Someone else could help me? I havent find any solution, it always show category only the firt time i load my site... Link to comment Share on other sites More sharing options...
shacker Posted September 18, 2012 Share Posted September 18, 2012 you have enabled the blocklayered? in some cases this hide the products 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