Product category filter is not working ?

This topic has 8 replies, 2 voices, and was last updated 1 years, 8 months ago ago by Rose Tyler

  • Avatar: Muhammad Ejaz
    Muhammad Ejaz
    Participant
    February 13, 2023 at 14:42

    Hello, Hope you are well.
    Please see that the product category is not working.
    when I click on the dropdown and then click on any category nothing happens

    Please, contact administrator
    for this information.
    7 Answers
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    February 13, 2023 at 16:42

    Hello, Muhammad Ejaz ,

    Please try to disable all the third-party plugins (including cache plugins), that does not come bundled with XStore https://www.8theme.com/documentation/xstore/plugins/included-plugins/, clear the cache of the browser, and check then. Maybe one of the additional plugins is the reason for the problem.

    Kind Regards,
    8theme team

    Avatar: Muhammad Ejaz
    Muhammad Ejaz
    Participant
    April 4, 2023 at 13:15

    Still its not working

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    April 4, 2023 at 13:41

    Hello, Muhammad Ejaz ,

    Thank you for your response.

    Please provide temporary wp-admin and FTP access.

    To provide wp-admin access, you can create a new user account with administrator role via the Dashboard, and provide us with the username and password via the Private Content area.
    To create FTP access, please contact your hosting provider for assistance.

    Thank you for your cooperation and we look forward to hearing from you soon.

    Kind Regards,
    8theme team

    Avatar: Muhammad Ejaz
    Muhammad Ejaz
    Participant
    April 4, 2023 at 14:32

    please see

    Please contact administrator
    for this information.
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    April 4, 2023 at 14:48

    Hello, Muhammad Ejaz,

    Please uncheck “Show as dropdown” in the settings for the widget and it will work fine. But in case, you want to have the dropdown for product categories, provide us with FTP access, so we can check the problem more deeply.
    We can’t recreate this problem on our test site.

    Kind Regards,
    8theme team

    Avatar: Muhammad Ejaz
    Muhammad Ejaz
    Participant
    April 11, 2023 at 10:43

    Please See the FTP details

    Please contact administrator
    for this information.
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    April 11, 2023 at 14:03

    Hello, Muhammad Ejaz,

    Fixed. Please clear cache and check now.

    We’ve disabled Ajaxify Widgets for the Product Categories widget – https://prnt.sc/pcWXKsInv7Ya

    If you want to apply Ajaxify for this widget still, add the next code in functions.php of the child theme

    wc_enqueue_js(
        "
        jQuery(document).on( 'change', '.dropdown_product_cat', function() {
            if ( jQuery(this).val() != '' ) {
                var this_page = '';
                var home_url  = '" . esc_js( home_url( '/' ) ) . "';
                if ( home_url.indexOf( '?' ) > 0 ) {
                    this_page = home_url + '&product_cat=' + jQuery(this).val();
                } else {
                    this_page = home_url + '?product_cat=' + jQuery(this).val();
                }
                location.href = this_page;
            } else {
                location.href = '" . esc_js( wc_get_page_permalink( 'shop' ) ) . "';
            }
        });
    "
    );
    

    Kind Regards,
    8theme team

  • Viewing 8 results - 1 through 8 (of 8 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.