Custom Features in Prestashop Blocklayered Module

Jul 23, 20141025
Custom Features in Prestashop Blocklayered Module

Some Prestashop users are challenged with a problem to display features with custom options in the module Blосklаyered. The main problem is that the module ignores custom features, and since each feature has its own unique ID, then when you try to output them into navigation your customers may see incorrect grouping as a result.  We once received a task from a customer to display such features in navigation. He was using some custom import, which, due to certain reasons, was recording imported features into custom fields. 

image0 Custom Features in Prestashop Blocklayered Module

So we decided to transfer such values into the default list, ignoring the repeated values within the language. We had to create a script, which we wanted to schedule for implementing these tasks.  But we have decided to slightly modify the logic of the module Blосklаyered and expand its functionality with the function “rebuildFeаtures( ) “, which would be called in the method BlосkLаyered: :getFilterBlосk( ):

Partner With Us Let's discuss how to grow your business. Get a Free Quote.
Talk to Vlad

image1 Custom Features in Prestashop Blocklayered Module

The above function modifies custom values into default ones on the fly, during the page load.

If a feature has all values as custom, then it can not be added into navigation. To fix this, we have to modify the function BlockLayered::getContent()


into this one (deleted the custom feature verification):

Partner With Us Looking for a partner that will help you to grow your business? We are the right company to develop your webstore. Feel free to get in touch with us. We will be happy to discuss your business opportunities and provide you with a Free Quote. Talk to Vlad


  1. This is a great work around and is exactly what we need. The problem is, I need a noob step by step buide on how to implement it. If you could make it simple that would help greatly!

  2. Hi,
    This is exactly what I am looking for but I don’t know how to do.
    Pleas can you write a process how to do?

    Thank you so much.

  3. Hello guys, was searching net for this kind solution, found here , but something doing wrong. im using blocklayered_mod module from warehouse theme, maybe problem in this , maybe not, looking for someone who have time to make it work (not free), who can help please email me, thanks

  4. I have tried it with PS 1.6 and it doesn’t work. The custom values are added successfully into the predefined ones but they are not shown in navigation in front office.

    I have checked the layered navigation module and the feature in enabled to be shown in front office.

    Any suggestions or tutorials for PS 1.6??

  5. Does not work with 1.6 :(
    Can someone point out what to change so it works with 1.6?
    Would be really really helpful!

Post a new comment

BelVG Newsletter
Subscribe to our mailing list and get interesting stuff and updates to your email inbox.
Email *