Skip to content
View in the app

A better way to browse. Learn more.

thirty bees forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Sort products on category page

Featured Replies

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.

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.