The WooCommerce hooks (woocommerce_before_add_to_cart_button, woocommerce_after_add_to_cart_button) are moved from the file woocommerce/single-product/add-to-cart/variable.php to woocommerce/templates/single-product/add-to-cart/variation-add-to-cart-button.php in the latest version of the WooCoomerce (3.4.0).
Till version 3.4.0 these hooks were present in the file woocommerce/single-product/add-to-cart/variable.php. So probably the theme or child theme might have overridden the file variable.php and the above-mentioned hooks still may present there, which has to be removed if the WooCommerce version is 3.4.0 or later.
Thank you!
So is there some code to add simply to function.php? I Have the same problem and going crazy to fix it! Thanks
@gaiafe Could you please raise a ticket through our website. We hope our technical team will be able to help you.
Thank you!
Hi there @themehigh and @gaiafe … jumping in on this thread to see if there was a solution to this. I have just installed the plugin and experiencing the same issue. Running WP 5.1.1.
@slinkylinks In the latest version of WooCommerce the hooks (woocommerce_before_add_to_cart_button, woocommerce_after_add_to_cart_button) are moved from the file woocommerce/single-product/add-to-cart/variable.php to woocommerce/templates/single-product/add-to-cart/variation-add-to-cart-button.php.
The version before 3.4.0 these hooks were present in the file woocommerce/single-product/add-to-cart/variable.php. So your theme or child theme might have overridden the file variable.php and these hooks still may present there which has to be removed if the WooCommerce version that you are using is 3.4.0 or later.
If you are still not able to fix the issue, please raise a ticket from our website. We hope our technical team will be able to help you.
Thank you!