Order products by category priority

  • mneimne
    Participant
    2 years ago #29472

    Thanks, I checked the Trello card, it has no link.

    wpsolr
    Keymaster
    2 years ago #29473

    Sorry for that. Check again please.

    mneimne
    Participant
    2 years ago #29474

    Thanks downloaded it and working as expected.

    mneimne
    Participant
    2 years ago #29508

    Hello again,
    I have a weird issue, I am using multi-checkout plugin in wordpress, and on the final checkout page I have a weird redirection caused by WPsolr, specifically in the file autocomplete_solr.js on 313.
    When I complete the checkout, I get an infinite redirect loop.

    wpsolr
    Keymaster
    2 years ago #29510

    You can prevent autocomplete_solr.js to be loaded on your checkout page, using a tool like https://wordpress.org/plugins/wp-asset-clean-up/

    mneimne
    Participant
    2 years ago #29511

    I will try it out, I have search bar in the header across all the website, will it affect it?

    mneimne
    Participant
    2 years ago #29516

    update, I tried this and it will make the search not working on the checkout page.

    mneimne
    Participant
    2 years ago #29518

    Update 2: The issue was resolved by disbaling an option in MultiStep checkout plugin. The option will add a # in the url causing wpsolr to think the filter URL chnaged and reloads the page.

    wpsolr
    Keymaster
    2 years ago #29526

    Thanks for the feedback.

    mneimne
    Participant
    2 years ago #29587

    Hello again
    I noticed a bug in the fix you shared, below are the steps to reproduce:
    1. Install wpsolr fix in the link you sent
    2. enable facets
    3. got to a product cateogry
    4. filter by category from the facets
    5. The results are the same, no filtering is done. (the product category filtering is working in the search page as expected.

    Note: I confirmed this bug in the patch by installing the official 22.2 without patches and it is working find when it comes to facets.

    wpsolr
    Keymaster
    2 years ago #29588

    I made some local tests, but could not reproduce your issue.
    Can you copy here the Elasticsearch query?

    mneimne
    Participant
    2 years ago #29589

    1. link to query in product archive page: https://pastebin.com/YsMiiiZq
    2. link to query in search page: https://pastebin.com/aWqPk4yu

    notice how non_flat_hierarchy_product_cat_str is not populated correctly in # 1

    mneimne
    Participant
    2 years ago #29590

    Hello,
    Did you have the chance to look at the attached files? Let me know if any clarification is needed.
    Thanks,

    wpsolr
    Keymaster
    2 years ago #29592

    Can you try without a search query for the second query (currently “fashion”), and check that you get the same number of results first?

    mneimne
    Participant
    2 years ago #29603

    update: this is not related to the fix provided I was able to reproduce it on 22.2, I am checking the scenario, below are two logs
    1. query in search page (working):https://pastebin.com/paYiWRNK
    2. query in product archive page(not working): https://pastebin.com/ZAKEc2ZS

Viewing 15 posts - 16 through 30 (of 40 total)

You must be logged in to reply to this topic.