Paypal for WooCommerce, by Angelleye
Add provided code to functions.php and update Settings.
Calculation option “Use prices modified by other plugins” must be ON.
System option “Suppress other pricing plugins in frontend” must be OFF.
1 2 3 4 5 6 7 |
add_action( 'wdp_before_apply_to_wc_cart', function () { remove_action( 'woocommerce_cart_emptied', array( Angelleye_PayPal_Express_Checkout_Helper::instance(), 'ec_clear_session_data' ), 10 ); }, 10, 0 ); add_action( 'wdp_after_apply_to_wc_cart', function () { add_action( 'woocommerce_cart_emptied', array( Angelleye_PayPal_Express_Checkout_Helper::instance(), 'ec_clear_session_data' ), 10 ); }, 10, 0 ); |