Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Lottery add to cart - display question first, then the lucky dip, then the ticket number selection (for pick number mod)
- *
- * This code should go to your theme's functions.php file
- * For WooCommerce Lottery v1.2.24 and Pick Number Mod 1.3.1 and higher
- */
- add_action( 'woocommerce_single_product_summary', 'custom_change_questions_order',10);
- function custom_change_questions_order(){
- remove_action( 'woocommerce_before_add_to_cart_button', 'lottery_questions_add_to_cart_button', 7 );
- add_action( 'woocommerce_before_add_to_cart_button', 'lottery_questions_add_to_cart_button', 4 );
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement