Skip to content

Instantly share code, notes, and snippets.

@webdados
Created November 3, 2017 17:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save webdados/92b6725c29adf3f2e0ccb627ffb51245 to your computer and use it in GitHub Desktop.
Save webdados/92b6725c29adf3f2e0ccb627ffb51245 to your computer and use it in GitHub Desktop.
Add incompatible shipping methods to Portugal Chronopost Pickup network for WooCommerce
<?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