Add / Update Cost of Shipping Method in Zone
-
Hi,
I’m currently trying to create automatically the Zones with his shipping methods using the follow code:
$new_zone_object = new WC_Shipping_Zone(); $new_zone_object->set_zone_name('AR - CABA'); $new_zone_object->add_location('AR:C', 'state'); $local_pickup_id = $new_zone_object->add_shipping_method('local_pickup'); $flat_rate_id = $new_zone_object->add_shipping_method('flat_rate');
But i can’t find how add / set / update the cost of the flat_rate shipping method.
Any suggestion?
Thanks,
Lucas
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Add / Update Cost of Shipping Method in Zone’ is closed to new replies.