Tagged: filter order
-
AuthorPosts
-
November 27, 2017 at 1:47 pm #1077033
Hi
The sidebar filters for the JA MegaFilter are automatically set to list in numeric and alphabetical order it appears…
But in J2Store you can set the order.
Is it possible to have the filter follow those settings in J2Store please?
Here is my current issue (See screenshot)
This is what is displaying as for right now which is incorrect:
Shipping:
3-5 Days
30 Days or more
7-14 Days
Expedited AvailableThis is what it should be based on what I have it set in J2Store:
3-5 Days
7-14 Days
30 Days or more
Expedited Available
November 27, 2017 at 3:35 pm #1077052Hi Guys
So yes, this is definitely something that needs to be address…
Here is another example
Sizing See attached screenshot
They are definitely out of order and should run from 4 – 4.5 down to 12 – 12.5…
Saguaros Moderator
Saguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
November 28, 2017 at 3:54 am #1077229Hi,
Could you share the credentials so I can take a look? By default, there is not that ‘shipping’ filter.
November 28, 2017 at 1:08 pm #1077368My apologies…
I used the wrong terminology
The "Options" in J2Store are ordered.
J2Store > Catalog > Options
I have set up a shipping option that works with the filtering on JA MegaFilter
See attached for order column I am referring to
Saguaros Moderator
Saguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
November 29, 2017 at 7:22 am #1077648So is that ok now?
If not, kindly share the credentials of your site so I will take a look.
November 29, 2017 at 12:26 pm #1077732This reply has been marked as private.Mr.Cat Moderator
Mr.Cat
- Join date:
- December 2016
- Posts:
- 270
- Downloads:
- 24
- Uploads:
- 69
- Thanks:
- 58
- Thanked:
- 53 times in 50 posts
November 30, 2017 at 9:31 am #1078003For now, there is no way to make filter field order like at backend, but here is a trick to make it works as your expectations.
First you have to set your data like this
3 – 5 Days 7 – 14 Days
Then go top line 649, and replace all of code that scope with this
var order = (fgroup.options.order.toUpperCase() == 'DESC') ? -1 : 1; keys.sort(function (a, b) { var v1, v2, s1, s2; v1 = fgroup.getItem(a).options.frontend_value; v2 = fgroup.getItem(b).options.frontend_value; s1 = Number(v1.split(' ')[0].replace('$','')); s2 = Number(v2.split(' ')[0].replace('$','')); if (s1 && s2) { return s1 > s2 ? 1 : -1; } else { return v1.localeCompare(v2) * order; } }); var _items = {}; keys.forEach(function (id) { _items[id] = fgroup.getItem(id); }); fgroup.items = _items;
You can see attachment below to get more detail.
I did that on your site. https://shop.latindanceevents.com/womens-shoes#page=1
-
This reply was modified 6 years, 9 months ago by
Mr.Cat.
-
This reply was modified 6 years, 9 months ago by
Mr.Cat.
-
1 user says Thank You to Mr.Cat for this useful post
December 1, 2017 at 6:36 pm #1078348Hi guys!
I see that someone edited the numerical ordering on my site, is there any update on the ordering by J2Store on this?
Thanks
AdinaDecember 5, 2017 at 3:55 pm #1079228Thanks!
Sorry for some reason your response wasn’t showing when I made my last comment.
A guess for now Im just going to turn off the megafilter because the cache issue in another post really poses a problem for me as Im constantly going to be adding product items and I need it to refresh for a returning user…
Hopefully it can get fixed and this can be used too.
Thanks again
Saguaros Moderator
Saguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
AuthorPostsViewing 10 posts - 1 through 10 (of 10 total)This topic contains 9 replies, has 3 voices, and was last updated by
Saguaros 6 years, 9 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum
Jump to forum