Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.