• Resolved nicw.a11n

    (@nicw)


    Hi

    Nice set of filters.

    I’m having trouble with the clear button, and a product category will not “uncheck” the final product in the list of checkboxes.

    I fixed the problem by adding

    currentUrl.searchParams.forEach(function(value, key) {
        currentUrl.searchParams.delete(key);
    });

    before

    for ( const i in result ) {
        currentUrl.searchParams.set( i, result[ i ] );
    }

    Can you foresee me experiencing any possible issues because of this? (apart from issues with new updates?)

    Also I am having issues with the return of a page with no results – it wipes the content of my page, removing title and the widget container/shortcode output itself.

    .no-products-found replaces the entire content of the page. A reload fixes the issue.

    • This topic was modified 4 years ago by nicw.a11n.
Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author themifyme

    (@themifyme)

    Hi,

    The .no-products-found issue happens with and without your code modifications? Could you send us a link to your website, to the page where we can see this issue?

    Thread Starter nicw.a11n

    (@nicw)

    Hi

    Yes, it is basically a separate issue, “solved” by hard coding a target of .products to the element.

    Unfortunately, the site is under construction for a client and I cannot provide a link, although I can tell you it is built with storefront as the parent. Currently we are calling a widget area into the shop and category pages, and are using the text widget to execute the short code.

    I will try and get time to forward a console log of the $container in various conditions.

    Plugin Author themifyme

    (@themifyme)

    Hi,

    The filter should do target .product by default, please try on a fresh install of StoreFront without any modifications or third-party plugins ( except WooCommerce ) and it should work, we have a demo with StoreFront Theme and Product Filter added in Shop Widget Area as Text Widget: https://themify.me/demo/themes/wc-product-filter/

    Thread Starter nicw.a11n

    (@nicw)

    Hi
    Yup, the problem was actions we had added which were not firing. Because the page was loading via AJAX, and our actions were added after the AJAX fired.
    Thanks again for the filter.

    Plugin Author themifyme

    (@themifyme)

    Hi,

    I’m glad it’s resolved. If you need help with anything else, please open a new topic, so we can help you there.

    Have a nice day!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Problems with fliter clear and reload’ is closed to new replies.