• Resolved konikaganjare

    (@konikaganjare)


    Hi,
    I have used WooCommerce Product Stock Alert plugin in my site.
    its working on product details page but I need to use it in product listing / shop page.
    so I have added shortcode <?php echo do_shortcode(‘[display_stock_alert_form]’); in archive page after that form is displaying but its not working subscribe btn not able to click its not working.
    so can you please help me out in this as I am doing it from last 2-3 days but not able to found solution.

    Looking forward to your reply.

    Thanks in advance.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author MultiVendorX

    (@wcmp)

    Hi @konikaganjare, our team will check this and get back to you.

    Hi,
    Please add this code in the function.php of the current active theme :

    add_action('init', 'custom_changes');
    function custom_changes(){
        add_action( 'woocommerce_after_shop_loop_item_title', 'test', 35);
    }
    function test(){
        echo do_shortcode('[display_stock_alert_form]');
    }

    Regards,

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Shortcode not working on shop page’ is closed to new replies.