Tagged: 

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • adinag Friend
    #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 Available

    This 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


    1. Screen-Shot-2017-11-27-at-8.34.15-AM
    adinag Friend
    #1077052

    Hi 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…


    1. Screen-Shot-2017-11-27-at-10.33.18-AM
    Saguaros Moderator
    #1077229

    Hi,

    Could you share the credentials so I can take a look? By default, there is not that ‘shipping’ filter.

    adinag Friend
    #1077368

    My 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


    1. Screen-Shot-2017-11-28-at-8.05.55-AM
    Saguaros Moderator
    #1077648

    So is that ok now?

    If not, kindly share the credentials of your site so I will take a look.

    adinag Friend
    #1077732
    This reply has been marked as private.
    Mr.Cat Moderator
    #1078003

    @adinag

    For 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. 2017-11-30_162900

    Wisdom is not a product of schooling but of the lifelong attempt to acquire it.

    adinag Friend
    #1078348

    Hi guys!

    I see that someone edited the numerical ordering on my site, is there any update on the ordering by J2Store on this?

    Thanks
    Adina

    adinag Friend
    #1079228

    Thanks!

    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
    #1079329

    Let us know if you need further helps.

Viewing 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