Close

Ajax Filter Ordering Issue

patrick@izigo.pt
one month ago
#15899 Quote
Avatar
  • 4
Hi, I am having an issue ordering the values in the Ajax Filter Plugin. I am not able to get ordered the different attributes of the sizes of the shoes:

43
45
44
42
44.5
42.5
40
40.5
41
41.5
46

Anyone has an idea how can I order this list?

Thank you.
Boyko
one month ago
#15900 Quote
Avatar
  • Moderator
  • 1437
patrick@izigo.pt wrote:
Hi, I am having an issue ordering the values in the Ajax Filter Plugin. I am not able to get ordered the different attributes of the sizes of the shoes:

43
45
44
42
44.5
42.5
40
40.5
41
41.5
46

Anyone has an idea how can I order this list?

Thank you.


You can set some Predefined Values for that specific attribute i.e Size. There you have Display Order and order them in the way you want them to be ordered. Then the Ajax Filters will check if such predefined values exist and will use them to order the available attribute options in the same order.
Regards,
Boyko Stanev
Nop-Templates.com
patrick@izigo.pt
one month ago
#15901 Quote
Avatar
  • 4
Hi,

Where do you set those values?

Thank you.
Boyko
one month ago
#15902 Quote
Avatar
  • Moderator
  • 1437
patrick@izigo.pt wrote:
Hi,

Where do you set those values?

Thank you.


You need to go to the Catalog -> Attributes -> Product Attributes page (where you create the Product Attributes).
Then find the attribute that you want to have sorted values and edit it. Then you will see the Predefined Values and add them with the corresponding display order.
Regards,
Boyko Stanev
Nop-Templates.com
patrick@izigo.pt
one month ago
#15909 Quote
Avatar
  • 4
Hi,

Thank you very much, problem solved! :)
patrick@izigo.pt
one month ago
#15910 Quote
Avatar
  • 4
Hi,

In the meantime, I realized that the plugin presents attributes in the filters that are associated with a product but with no stock, and they are still listed.

How can I hide attributes that are not in any product available in stock?

Thanks.
Boyko
one month ago
#15915 Quote
Avatar
  • Moderator
  • 1437
patrick@izigo.pt wrote:
Hi,

In the meantime, I realized that the plugin presents attributes in the filters that are associated with a product but with no stock, and they are still listed.

How can I hide attributes that are not in any product available in stock?

Thanks.


Hi,

Unfortunately you can't load only In Stock products by default. There is a separate In Stock filter that you need to enable that will show you only the In Stock products and the available attributes respectively.
Regards,
Boyko Stanev
Nop-Templates.com