Get shipping instance details from instance id
-
Context : imported orders from Amazon get a shipping item with a name from Amazon shipping system (like ‘UK Std_Dom_1’) and a shipping item meta with an instance id of 0.
I need to translate those methods to WC shipping instances, which is done, in that case, instance 2
However, I can’t figure how to get the shipping instance name ( in that case “Free shipping to your home”) from the instance id 2
It’s stored in the base as woocommerce_free_shipping_2_settings but I don’t want to query it directly.Any idea how to instantiate the shipping instance from the id ?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Get shipping instance details from instance id’ is closed to new replies.