PluginUs.Net - Business Tools for WooCommerce and WordPress

[realize your idea - make your dreams come true]

Support Forum

You need to log-in to create request (topic) to the support

Autosubmit on desktop only

The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday. If you have problems with registration ask help on contact us page please
If you not got email within 24~36 business hours, firstly check your spam box, and if no any email from the support there - back to the forum and read answer here. DO NOT ANSWER ON EMAILS [noreply@pluginus.net] FROM THE FORUM!! Emails are just for your info, all answers should be published only here.
The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday.

Sorry if it's already been answered but is it possible to enable autosubmit on desktop only ?

Thanks

Hello

add 2  widgets  with  settings - https://c2n.me/49AOVhx.png

For show or hide widgets on different devices - http://www.woocommerce-filter.com/how-to-show-or-hide-widget-only-on-selected-site-pages/

Works great, thanks.

I finally used 2 different sidebars with different options and visibility :

register_sidebar(array(
 'name' => __('Shop sidebar (Desktop)'),
 'id' => 'shop-sidebar',
 'before_widget' => '<div class="show-for-large">',
 'after_widget' => '</div>',
 'before_title' => '<h3>',
 'after_title' => '</h3>',
));

register_sidebar(array(
 'name' => __('Shop sidebar (Mobile)'),
 'id' => 'shop-mobile-sidebar',
 'before_widget' => '<div class="hide-for-large">',
 'after_widget' => '</div>',
 'before_title' => '<h3>',
 'after_title' => '</h3>',
));

Hello

Ok!  Great!

Welcome;)

http://codecanyon.net/downloads - rate please the plugin if you liked it ...

 

Hi,

I think i checked this a little bit too quickly... Not working as expected.

I have 2 differents filters : 1 for mobile / 1 for desktop, hidden respectively by CSS (link in private). But autosearch is triggered on both even though it's disabled for mobile. I think it would be triggered only for the one on desktop. Looks like a bug to me. Can you have a look please ?

Oh and it's not possible to use is_mobile() conditionnal tag for that, because it's not cache complient (server side rendered).

Hi,

Any update on that issue, please ?

Thanks

Hello

it's not possible to use is_mobile() conditionnal tag -  In this case, I don't know how to do it.  To change the settings, you need to find out the device in the php code

It's not possible to do this using PHP because of caching (for exemple : mobile filters can be cached and displayed on desktop). That's why i did it with CSS.

But when there are 2 sets of filters on the same page, one with autosubmit=true and the other one with autosubmit=false, the autosubmit is triggered on both : clicking on the filter with autosubmit=false does submit the form. Do you think this can be fixed ? That's a real issue to me.

Each filter form should have an ID or something so that javascript triggers only apply to the one concerned.

Hello

Unfortunately, only one filter(widget/shortcode) can work on one page.

You  can  try  to  use  JS  to remove unnecessary filter or change property - woof_autosubmit  (0 or 1)

Hello,

Ok, this does work :

    $(window).on('resize load', function () {
        if (Math.max(document.documentElement.clientWidth, window.innerWidth || 0) < 640) {
            woof_autosubmit = 0;
        } else {
            woof_autosubmit = 1;
        }
    });

Hello

this code should be included in wp-head  before  front.js

OR  try - https://c2n.me/49NpCqk.png