Jump to content

Module blocklayered filter don't work in custom theme


Recommended Posts

Hi everyone!

 

I have a problem with module blocklayered. It works great in default prestashop theme and one of free themes but it don't work with my custom theme, that I currently use.

 

Works only one option: if I select option "Show products from subcategories" from BO - it shows all products from subcategories in main category.

 

If I try to select manufacturer or price range from filter block in FO filter do not apply anything.

 

I think that I damaged some code from category.tpl or some in theme's .js files.

 

If someone can describe how I can debug or resolve my problem, please do this.

 

I use prestashop 1.4.8.2 and blocklayered 1.8.5

 

Sorry for bad english.

Thank you!

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

I debug the problem succesfully.

problem was in product-list.tpl.

 

Default product-list.tpl have product_list tag and module blocklayered work with this tag.

My theme can switch product view to list and grid view and have two tags - product_list_grid and product_list_list.

I change variable product_list in blocklayered.js to product_list_grid and module works fine then products displayed as grid.

 

As I understood I need to customize blocklayered.js for correct work with both tags.

How I can do this?

Link to comment
Share on other sites

×
×
  • Create New...