WPSolr logo
Search
Close this search box.

Forum Replies Created

  • mcl7
    Participant

    I really appreciate the quick fix here! Worked like a charm!

    mcl7
    Participant

    Although related, please excuse that last sentence. That’s a feature request I will add to the appropriate category.

    mcl7
    Participant
    3 years, 1 month ago in reply to: Bug: When selecting facet with one product #25781

    This works perfectly! No problems at all.

    Thank you!

    mcl7
    Participant
    3 years, 1 month ago in reply to: Bug: When selecting facet with one product #25779

    I don’t think this is the issue. I thought I had to enable this redirect you are mentioning. Is this is a feature in WooCommerce core?
    Here is the code I used to do that previously to redirect result pages with one result to the product. page (however, it was causing issues so I’m not using it):

    /* Redirect if there is only one product in the category or tag, or anywhere... */
    function redirect_to_single_post(){
    global $wp_query;
    if( (is_product_category() || is_product_tag()) && $wp_query->post_count == 1 )//Woo single only
    //if( is_archive() && $wp_query->post_count == 1 )//redirect all single posts 
    {
        the_post();
        $post_url = get_permalink();
        wp_safe_redirect($post_url , 302 );
    exit;
    }
    } 
    add_action('template_redirect', 'redirect_to_single_post');

    However, that code snippet wasn’t even activated. I deleted it just in case and I still see the problem (even when using the code snippet you most recently shared).

    Also, I just noticed that, in these cases where there is only one result in a facet, if I uncheck the filter and select it again it actually shows me different results each time.

    Note that this only happens on search results (not category pages). Seems also to be a pattern that it always shows four products instead of the actual amount of products (in this case 1).

    Note also that after you have selected a facet with only one product, if you select another facet it will either not work or it will go to the no results found message.

    mcl7
    Participant
    3 years, 1 month ago in reply to: ? Question: Yith Infinite Scroll + WPsolr #25141

    Great. I will email you.

    mcl7
    Participant
    3 years, 1 month ago in reply to: ? Question: Yith Infinite Scroll + WPsolr #25119

    Can you recommend any other options for an infinite scroll? Or, could this be some custom work I could pay for?

    mcl7
    Participant
    3 years, 1 month ago in reply to: Google Analytics Issues? #25117

    Thank you!

    mcl7
    Participant
    3 years, 1 month ago in reply to: Feature Request: Pagination Tags #25116

    Interesting. I think it should be but there may be an issue. I will look into it and post back. Thanks.

    mcl7
    Participant
    3 years, 2 months ago in reply to: Bug: WProcket compatibility #25104

    Found the issue and a solution. Many WProcket features are disabled on any URL with a query string. This is fine for caching being disabled but all of the actual caching features in WProcket are disabled anyway at most hosts. The problem though is that they actually are disabling more than just the caching and also any minification, CSS optimization, js optimization, and any delaying.

    This can be addressed by installing the following plugin provided by Wprocket:

    https://docs.wp-rocket.me/article/29-caching-the-search-page-result

    mcl7
    Participant
    3 years, 2 months ago in reply to: ? Question: Yith Infinite Scroll + WPsolr #25101

    Any update on this? Really eager to take advantage of these two plugins together.

    mcl7
    Participant
    3 years, 2 months ago in reply to: Bug: WProcket compatibility #24592

    Basically, the entire File Optimization section. They responded by saying that all caching is disabled on the search page but that didn’t really answer my question. Waiting to hear back from them and will post back to let you know what I find.

    mcl7
    Participant

    thank you, fix worked perfect

    mcl7
    Participant
    3 years, 2 months ago in reply to: ? Question: Yith Infinite Scroll + WPsolr #24503

    Thank you!

    mcl7
    Participant

    Correct me if I am wrong but I thought I had seen a post where this was being discussed.
    Just to be clear, what I am trying to be do is seen in the following image where “Adidas” was the selected filter:

    https://ibb.co/8NmkWd7

    The goal here is to make sure that it’s clear to the user (especially when the URLs are shared) that the page they are viewing is filtered.

    Thoughts?

    mcl7
    Participant

    I’m sorry for not being clear. What I am trying to do is display only the facets selected by the user above the results (either above or below the H1). I don’t think I can accomplish that with the Facets widget which is already on the page?

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