• Resolved frangoaoalho

    (@frangoaoalho)


    I am in WordPress
    Using Elementor as the builder
    Woocommerce as the store platform
    Themify Product Filter widget as the product filter in the product category template alocated to all product categories, only differing the products within each respective category.

    Everything is working well.
    The product filter is working good, filtering well.
    Now, my problem is, when the filter parameters do not match with any product, for example:
    – If there are NO product at 18$ and I set the filter for 18$ to 20$, or if I search for a product named ‘hbuwybeyfa37232h’ which does NOT exist, then, instead of showing me a message likeNo products found’, it shows me all the products existing in my store, regardless of the category.

    I can safely use PHP and HTML through CodeSnippets, or JavaScript through Essential Addons.

    Please help me out.

    • This topic was modified 10 months, 4 weeks ago by frangoaoalho. Reason: UNDERLINING WORDS SHOWS AS CODE WEIRDLY

    The page I need help with: [log in to see the link]

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Author themifyme

    (@themifyme)

    Hi,

    1. It looks like you are using Elementor widget to query those products, thus the product filter is not rendering results in the Elementor product widget.
    2. While checking your site, found another issue in case you are not aware of it. The product filter dropdown is not accessible (ie. when you hover the filter option, the dropdown below is not accessible) – this is due to the CSS margin-top:6px !important being added to the dropdown element, please remove this.
    Thread Starter frangoaoalho

    (@frangoaoalho)

    Thanks for the prompt reply.
    – What would you advice for a solution, use the shortcode instead?
    I cant see the ‘product filter unaccessible dropdown’ issue, either on mobile, tablet, laptop or desktop. (Both on Chrome, Safari and on Edge

    Thanks for the heads up, its fixed! Now its accessible ??

    • This reply was modified 10 months, 4 weeks ago by frangoaoalho.
    • This reply was modified 10 months, 4 weeks ago by frangoaoalho.
    Plugin Author themifyme

    (@themifyme)

    1. Try to use the [products] shortcode (https://woo.com/document/woocommerce-shortcodes/) to display the products. Also, are you using Elementor Pro to create the template? The Elementor Pro template has their own queries, so it might override the default WooCommerce product queries.

    2. It seems like you’ve fixed the hover dropdown issue. This is good now.

    Thread Starter frangoaoalho

    (@frangoaoalho)

    hey, thanks again for the reply.

    Yes, I am. The woocommerce shortcode is not the most flexible, intuitive and maneuverable unfortunately.

    I noticed that

    By default your .wpf-no-products-found is set to display: none always.

    If I display:block instead then it will always be showing up.

    I tried several ways like:

    JS:
    <merlin-component id=”merlin-code-summarizer” class=”merlin-code-summarizer”></merlin-component>jQuery(document).ready(function ($) {
    // Check if the 'No products found' message is displayed
    if ($('.wpf-no-products-found').is(':visible')) {
    // Hide the products container if the message is displayed
    $('.elementor-posts-container').hide();
    }
    });


    or

    <merlin-component id=”merlin-code-summarizer” class=”merlin-code-summarizer”></merlin-component>jQuery(document).ready(function($) {
    // Wait for the filter form to submit
    $('.wpf-widget form').submit(function() {
    // Set a timeout to ensure that the filter has taken effect
    setTimeout(function() {
    // Check if there are any products displayed
    if ($('.products').children().length === 0) {
    // If no products found, display the "No products found" message
    $('.wpf-no-products-found').css('display', 'block');
    } else {
    // If products found, hide the "No products found" message
    $('.wpf-no-products-found').css('display', 'none');

    }
    });
    });


    • This reply was modified 10 months, 4 weeks ago by frangoaoalho.
    Thread Starter frangoaoalho

    (@frangoaoalho)

    Also I noted that what is not swapping for the notice message is the

    .woocommerce ul.products and .woocommerce-page ul.products

    Maybe that is were the stuff is breaking.

    Can you help me please

    • This reply was modified 10 months, 4 weeks ago by frangoaoalho.
    Thread Starter frangoaoalho

    (@frangoaoalho)

    UPDATE!

    I basically gave it a quick fix for now by

    .swipper-wrapper.product {
    display: none !important;
    }

    Until you guys can help me out ??

    Thread Starter frangoaoalho

    (@frangoaoalho)

    Hey, any news on this topic?
    I am using Elementor Pro, and the widget ‘Products’ since the ‘Product Archives’ shortcode / widget from woocommerce is not that nice, aestethically and functionally.

    Any updates?

    With my best regards,

    Plugin Author themifyme

    (@themifyme)

    Hi,

    We recently pushed an update that should address the Elementor Products widget. Can you confirm that you are using the latest version? Your site is currently down: https://iolkd.com/category/snacks/, so we can’t check it.

    Thread Starter frangoaoalho

    (@frangoaoalho)

    Hey Themify Team, I hope to find you well.

    Attending to the website https://zinblo.com/category/snacks/ or https://zinblo.com/category/carne/
    (I transfered the website to a different domain).

    Although, the filters are not working.
    ‘Sale’ not working (Show no Results)
    ‘Price’ not working (Show no Results)
    ‘Color’ not working (Show no Results)
    ‘Size’ not working (Show no Results)
    ‘Categories’ not working (Not clickable / or missing a trigger or on-click action or something)

    This happing both with the Elementor ‘Product Archives’ and ‘Product’ widgets, and with the queries selected accordingly. (Before it was working, just didn’t show ‘no results’ message, now it only shows the ‘no results’ message. Quite ironic tbh)

    Using Woocommerce, and Hello Elementor Theme. Everything is updated to the last version.
    Also, no conflicts showing in log.

    Pleae help me out Team,

    Attentively awaiting feedback,

    Thread Starter frangoaoalho

    (@frangoaoalho)

    UPDATE!

    As as I delete on the parameters: size, color or category it works.

    The problem is I need those 6: price, name, on sale + the above mentioned.

    Thread Starter frangoaoalho

    (@frangoaoalho)

    I sent you an e-mail to [email protected]

    Appreciated.

Viewing 11 replies - 1 through 11 (of 11 total)
  • You must be logged in to reply to this topic.