SHARE
TWEET

display question first, then the lucky dip, then numbers

wpgenie Jun 1st, 2020 (edited) 725 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /**
  2.  * Lottery add to cart - display question first, then the lucky dip, then the ticket number selection (for pick number mod)
  3.  *
  4.  * This code should go to your theme's functions.php file
  5.  * For WooCommerce Lottery v1.2.24 and Pick Number Mod 1.3.1 and higher
  6.  */
  7. add_action( 'woocommerce_single_product_summary', 'custom_change_questions_order',10);
  8. function custom_change_questions_order(){
  9.     remove_action( 'woocommerce_before_add_to_cart_button', 'lottery_questions_add_to_cart_button', 7 );
  10.     add_action( 'woocommerce_before_add_to_cart_button', 'lottery_questions_add_to_cart_button', 4 );
  11. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top