• Resolved cglmicro

    (@cglmicro)


    Hi.

    I want to buy the premium version so I get the widget, but first I need to address a problem: when I click to see the next page of products in my Woocommerce, I loose all the COMPARE buttons. Even if I click to see the previous page, the buttons won’t come back. You can test my site here: https://www.cglmicro.ca/boutique/

    Tell me if I can be reimburse if I purchase the premium and this bug persist?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author YITHEMES

    (@yithemes)

    Hi,
    the issue is related with ajax pagination.
    For fix it we need to change a method on main plugin class. So, open the file class.yith-woocompare.php (wp-content/plugins/yith-woocommerce-compare/includes) and change the method is_frontend() ( line 62 ) this way

    
    public function is_frontend() {
    $is_ajax = ( defined( 'DOING_AJAX' ) && DOING_AJAX );
    return (bool) ( ! is_admin() || $is_ajax && ( ( isset( $_REQUEST['context'] ) && $_REQUEST['context'] == 'frontend' ) || ( isset( $_REQUEST['action'] ) && $_REQUEST['action'] == 'woof_draw_products' ) ) );
            }
    

    Please make first a backup copy. Let me know.
    Regards.
    Giuseppe

    Thread Starter cglmicro

    (@cglmicro)

    Yesssss ! You did it.

    I’m purchasing this right away.

    What will happen with the next update? Will you include this fix in your extension so I won’t need to fix it at every update?

    Thanks.

    Thread Starter cglmicro

    (@cglmicro)

    I did purchased it. I have 3 questions:

    a) How can I reduce the size of the product titles in the widget so the X won’t fall under each title?

    b) When I add items to the compare list, the widget won’t show them unless I refresh the page; looks like the AJAX portion of the widget won’t work.

    c) In the free version, the compare result was showing in a popup witn an X to close the lightbox. Now it’s a page with no way to close or to get to get back except with the BACK button. How about a link on top and on bottom “back to products list”, or a lightbox popup like before?

    Thanks.

    Plugin Author YITHEMES

    (@yithemes)

    Hi,
    the fix above will be included on next plugin release.
    About other issues or questions, if you have purchased the premium version, open a ticket on yithemes support desk.
    This is a public forum dedicated to the version on ww.wp.xz.cn and not for the commercial version.

    Thanks, regards.

    Thread Starter cglmicro

    (@cglmicro)

    Didn’t know, and done. Thanks.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Loosing COMPARE button when changing page’ is closed to new replies.