Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- add_filter('woocommerce_amazon_pa_checkout_message',function(){
- return "Change the amazon message";
- });
- add_action( 'wfacp_after_checkout_page_found', 'move_down_angel_eyes_button' );
- add_action( 'wfacp_internal_css', 'angel_eye_custom_css', 99 );
- function move_down_angel_eyes_button() {
- if ( class_exists( 'Angelleye_PayPal_Express_Checkout_Helper' ) ) {
- $instance = Angelleye_PayPal_Express_Checkout_Helper::instance();
- if ( $instance instanceof Angelleye_PayPal_Express_Checkout_Helper ) {
- if ( $instance->enabled == 'yes' && ( $instance->show_on_checkout == 'top' || $instance->show_on_checkout == 'both' ) ) {
- remove_action( 'woocommerce_before_checkout_form', array( $instance, 'checkout_message' ), 5 );
- add_action( 'woocommerce_before_checkout_form', array( $instance, 'checkout_message' ), 50 );
- }
- }
- }
- if ( class_exists( 'WC_Amazon_Payments_Advanced' ) && wc_apa() instanceof WC_Amazon_Payments_Advanced ) {
- $instanceofAmazone = wc_apa();
- remove_action( 'woocommerce_before_checkout_form', array( $instanceofAmazone, 'checkout_message' ), 5 );
- add_action( 'woocommerce_before_checkout_form', array( $instanceofAmazone, 'checkout_message' ), 49 );
- }
- }
- function angel_eye_custom_css() {
- if ( class_exists( 'Angelleye_PayPal_Express_Checkout_Helper' ) ) {
- echo "<style>";
- echo "div#paypal_box_button .woocommerce_paypal_ec_checkout_message > p.checkoutStatus{display:none}";
- echo "</style>";
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement