• Resolved mattish2000

    (@mattish2000)


    So the product variation tables look great and are so much better than the standard drop down menus. The problem I have is where I have variations on the product my back in stock notifier for out of stock items does not appear.
    It is still appearing on simple products.

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

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author Hakik Zaman

    (@hakik)

    Hi @mattish2000

    Thanks for reaching out to me. As far I know Back In Stock Notifier for WooCommerce plugin is using woocommerce_variable_add_to_cart hook. Please put the below code as a snippet (using Code Snippet plugin) or put the below code in your child theme’s functions.php file.

    function pvt_support(){
       global $pvtfw_table;
       remove_action('template_redirect', array( $pvtfw_table, 'remove_add_to_cart'), 29 );
    }
    add_action('template_redirect', 'pvt_support');

    Please let me know if it resolves your issue. ??

    Thanks

    Thread Starter mattish2000

    (@mattish2000)

    Hi Hakik
    Thank you for the quick reply, I will pass this onto the guys that sort out my site and let you know how it goes.
    Thank you

    Thread Starter mattish2000

    (@mattish2000)

    Ive tried adding the rules but I get the following error

    Your PHP code changes were rolled back due to an error on line 4 of file wp-content/themes/flatsome-child/functions.php. Please fix and try saving again.

    syntax error, unexpected ‘&’

    Plugin Author Hakik Zaman

    (@hakik)

    Hi @mattish2000

    Really sorry for your inconvenience. Could you please give me a screenshot that how you paste the below snippet-

    function pvt_support(){
    	global $pvtfw_table;
    	remove_action('template_redirect', array( $pvtfw_table, 'remove_add_to_cart'), 29 );
    
    }
    add_action('template_redirect', 'pvt_support');

    Hope to hear from you soon.

    Thanks

    Thread Starter mattish2000

    (@mattish2000)

    Hi Hakik
    The forum won’t let me put a picture (screen shot) into it?
    Thanks
    Matthew

    Thread Starter mattish2000

    (@mattish2000)

    I have dropped it on to a webpage for you
    https://www.growvegandfruit.co.uk/4256-2/

    Plugin Author Hakik Zaman

    (@hakik)

    Hi @mattish2000

    Thanks for giving me the screenshot. You can use Lightshot to post the screenshot link here.

    Please check this (your pasted code) and this (my provided code) screenshot. Somehow when you copy the code it was not copied properly.

    In this case, you can type the code by yourself or you can also copy code from here.

    Hope to hear from you soon.

    Thanks

    Thread Starter mattish2000

    (@mattish2000)

    Oh I see
    I have used the code that came through on the email update from the forum and it has come through different to the forum

    will try again

    Thanks
    Matthew

    Thread Starter mattish2000

    (@mattish2000)

    Hi There
    The code has been accepted fine but I still don’t have out of stock notifications available on variable products?
    Regards
    Matthew

    Plugin Author Hakik Zaman

    (@hakik)

    Hi @mattish2000

    I have tested my provided code with Back in Stock Notifier and it is working fine from my side.

    I have created a video to demonstrate the process and how it is working from my side.

    Hopefully, it will help you.

    Thanks

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘PVT & Back In Stock Notifier for WooCommerce’ is closed to new replies.