Created
November 3, 2017 17:15
-
-
Save webdados/92b6725c29adf3f2e0ccb627ffb51245 to your computer and use it in GitHub Desktop.
Add incompatible shipping methods to Portugal Chronopost Pickup network 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( 'cppw_get_shipping_methods', 'woocommerce_flatrate_percountry_cppw_get_shipping_methods' ); | |
function woocommerce_flatrate_percountry_cppw_get_shipping_methods( $shipping_methods ) { | |
$shipping_methods[] = 'woocommerce_flatrate_percountry'; | |
return $shipping_methods; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment