Jump to content
thirty bees forum
  • 0

Sort products on category page


Lathaneo

Question

Hi,

I try to sort products on the demo shop :https://front.thirtybees.com/Coffee#.

Sort on category page looks wrong, for example, try 'Product Name: Z to A' and 'Product Name: A to Z', it's always the 'Product Name: A to Z' sort which is displayed.

I think this cause this file: themes\community-theme-default\js\modules\blocklayered\blocklayered.js

The function reloadContent('forceSlide') add a parameter in URL, and isn't separate from the previous one by a '&' So the function Tools::getProductsOrder() get only "descforceSlide" in paramater and send back always 'asc'

So in blocklayered.js, i replaced reloadContent('forceSlide') by reloadContent('&forceSlide'), line 637 and 643.

and it's looks better now, sort is right.

Regards.

Edit: My first solution was wrong.

Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

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