aljon ngo Posted July 5, 2014 Share Posted July 5, 2014 (edited) I want to create a manufacturer (brand in my case) filter using the layered navigation block and place this next to my defaukt sorting in ps 1.5 i did this by inserting this code at my category.tpl {include file="./modules/blocklayered/blocklayered.tpl"} So now my problem is when i do this step at prestashop 1.6 i ecounter this error Notice: Undefined index: nbr_filterBlocks in /home/vhost/dextertonstore2/cache/smarty/compile/2a/3d/27/2a3d274f79f30dbcf6a26fed74f871da2fb62e0e.file.blocklayered.tpl.php on line 44 Notice: Trying to get property of non-object in /home/vhost/dextertonstore2/cache/smarty/compile/2a/3d/27/2a3d274f79f30dbcf6a26fed74f871da2fb62e0e.file.blocklayered.tpl.php on line 44 Notice: Undefined index: nbr_filterBlocks in /home/vhost/dextertonstore2/cache/smarty/compile/2a/3d/27/2a3d274f79f30dbcf6a26fed74f871da2fb62e0e.file.blocklayered.tpl.php on line 436 Notice: Trying to get property of non-object in /home/vhost/dextertonstore2/cache/smarty/compile/2a/3d/27/2a3d274f79f30dbcf6a26fed74f871da2fb62e0e.file.blocklayered.tpl.php on line 436 i tried to clear the cache and recompile my template, i even deleted manually my cache in \cache\smarty\cache and \cache\smarty\compile but still im getting this error. Edited July 5, 2014 by aljon ngo (see edit history) Link to comment Share on other sites More sharing options...
aljon ngo Posted July 9, 2014 Author Share Posted July 9, 2014 Ok i found the solution here, this error occurs because there were no values that is pass on to our page.. in order to include the blocklayered.tpl to work .. what i did is i transplanted the layered nav into my left column and display it to none.. in this case .. the values are pass to our page by the blocklayered.php Link to comment Share on other sites More sharing options...
benzenewings Posted June 10, 2015 Share Posted June 10, 2015 Can you share the code you used to hide it in the left column and get it to work on the page? Link to comment Share on other sites More sharing options...
aljon ngo Posted June 10, 2015 Author Share Posted June 10, 2015 Just use css display:none Link to comment Share on other sites More sharing options...
benzenewings Posted June 10, 2015 Share Posted June 10, 2015 Hi aljon, thanks for replying. I figured that, and added display:none; to my left column . I dont get error msg, but selecting a manufacturer wont work, the loading gif just turns...My layered nav works fine without the hack. First step, I add the code to the category tmpl file, then I have two columns of manufacturers, filters, etc. . Then I go to global css and display:none on the column col-xs-12 col-sm-3 line. This hides the left column and only shows the filter from the new code. However, the filters then dont function, the gif turns. Strange. any thoughts? 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