Jump to content

layered navigation block - insert in product sort place prestashop 1.6


Recommended Posts

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"}

post-792013-0-70561400-1404539116_thumb.jpg

 

 

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.

post-792013-0-85927700-1404538636_thumb.jpg

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

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

  • 11 months later...

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

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