Jump to content

[SOLVED] Sabrina's Blog Article - "This week, learn how to organize your product categories". Numbers show at start of autocomplete search


Recommended Posts

I loved Sabrina's Blog Article - "This week, learn how to organize your product categories" as it showed how to put numbers in front of each subcategory to enable you to switch the order from alphabetical order.

3001.Collars
3002.Bowls

My problem is that these numbers show at the start of the autocomplete search. I have even tried this on a default install of prestashop 1.25 using default module quick block search. Is there a quick fix?

Link to comment
Share on other sites

This sounds like a bug worth reporting on the bug tracker. Try changing line 18 of modules/blocksearch/blocksearch-top.tpl from:

return row[2] + ' > ' + row[1];



to:

return row[2].replace(/^[0-9]+\./, "") + ' > ' + row[1];



Let me know whether that works.

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