Skip to content

Instantly share code, notes, and snippets.

@ibndawood
Created May 28, 2020 17:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ibndawood/bd5ff5bed4c5c5886ebc7168484fcd8d to your computer and use it in GitHub Desktop.
Save ibndawood/bd5ff5bed4c5c5886ebc7168484fcd8d to your computer and use it in GitHub Desktop.
Electro v2 - Move Rewards message below cart
add_action( 'init', 'ec_child_print_rewards_message', 20 );
function ec_child_print_rewards_message() {
if ( function_exists( 'YITH_WC_Points_Rewards_Frontend' ) ) {
remove_action( 'woocommerce_before_cart', array( YITH_WC_Points_Rewards_Frontend::get_instance(), 'print_rewards_message_in_cart' ) );
add_action( 'woocommerce_before_cart_collaterals', array( YITH_WC_Points_Rewards_Frontend::get_instance(), 'print_rewards_message_in_cart' ) );
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment