Created
May 28, 2020 17:35
-
-
Save ibndawood/bd5ff5bed4c5c5886ebc7168484fcd8d to your computer and use it in GitHub Desktop.
Electro v2 - Move Rewards message below cart
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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