• Resolved chesscoin

    (@chesscoin)


    Hello,
    Congratulations for the very nice plugin!
    I am using Astra Pro theme; with the infinite scroll feature on shop page.
    Labels don’t show on the products which appear on the infinite, it just appears on the first displayed items… Maybe a hook to add somewhere ?
    Thanks in advance

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author ILLID

    (@mihail-barinov)

    Hi,

    I just checked shop page with infinite scroll on your website and looks like the labels are working fine with newly loaded products.

    Do you still see any problems here?

    Regards

    Thread Starter chesscoin

    (@chesscoin)

    Hi,
    Thanks for your reply.
    I installed a plugin for infinite scroll, which makes it work…
    But, I would prefer NOT to use this additional plugin.
    If you look now, I have put back the Astra Pro theme infinite scroll function, where labels don’t show.
    https://kanabiz.net/v4/boutique/
    Thanks

    Plugin Author ILLID

    (@mihail-barinov)

    Looks I found the solution for you. But you will need to make some changes in the plugin source code. I will add the same changes in the next plugin release.

    So please open advanced-woo-labels/inludes/class-awl-label-display.php, find lines

    if ( ! is_admin() ||
                ( isset( $_GET['action'] ) && 'elementor' === $_GET['action'] ) ||
                isset( $_GET['elementor-preview'] ) ||
                ( isset( $_POST['action'] ) && 'elementor_ajax' === $_POST['action'] ) ||
                ( isset( $_REQUEST['action'] ) && 'flatsome_quickview' === $_REQUEST['action'] ) ||
                ( isset( $_REQUEST['action'] ) && 'jet_smart_filters' === $_REQUEST['action'] )
            ) {
                $enable = true;
            }

    and replace with

    if ( ! is_admin() ||
                ( isset( $_GET['action'] ) && 'elementor' === $_GET['action'] ) ||
                isset( $_GET['elementor-preview'] ) ||
                ( isset( $_POST['action'] ) && 'elementor_ajax' === $_POST['action'] ) ||
                ( isset( $_REQUEST['action'] ) && 'flatsome_quickview' === $_REQUEST['action'] ) ||
                ( isset( $_REQUEST['action'] ) && 'jet_smart_filters' === $_REQUEST['action'] ) ||
                ( function_exists( 'wp_doing_ajax' ) && wp_doing_ajax() && isset( $_REQUEST['action'] ) )
            ) {
                $enable = true;
            }
    Thread Starter chesscoin

    (@chesscoin)

    Thank you! Works perfect.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Hook on Astra Infinite Scroll’ is closed to new replies.