Created
September 13, 2018 13:26
-
-
Save kreamweb/1333d6977e65fa8d8dcae34c99b3a3cf to your computer and use it in GitHub Desktop.
Change the Set Express Checkout Request parameters on YITH PayPal Express Checkout for WooCommerce
This file contains 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
<?php | |
add_filter('yith_paypal_ec_set_express_checkout_request_parameters', 'yith_paypal_ec_set_express_checkout_request_parameters'); | |
function yith_paypal_ec_set_express_checkout_request_parameters( $args ){ | |
$args['NOSHIPPING'] = 2; | |
$args['ADDROVERRIDE'] = 1; | |
return $args; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment