Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* Simpler version of https://pastebin.com/kVbjUM2a */
- /* This code should go to your child theme's functions.php file or custom plugin. */
- add_action( 'woocommerce_init' , 'custom_remove_and_add_actions' );
- function custom_remove_and_add_actions(){
- remove_action('woocommerce_single_product_summary', 'woocommerce_template_single_add_to_cart', 30);
- add_action('woocommerce_after_single_product_summary', 'woocommerce_template_single_add_to_cart', 1);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement