Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $shipping_zone = WC_Shipping_Zones::get_zone_matching_package( $package );
- $zone = $shipping_zone->get_zone_name();
- if($zone === 'US West'){
- //..
- }else if($zone === 'US East'){
- //...
- }else{
- //...
- }
Add Comment
Please, Sign In to add comment