method_id has changed since WC3.4
-
Hi,
I am having some trouble since updating WC to 3.4.
The method_id that is saved in the order item meta data is no longer saving the full ID of the method used.
e.g. previously the method_id per shipping line would be ‘wbs:b4a11a2f_ups_courier_tracked’. Now it is just saving ‘wbs’.
I understand that in WC 3.4 the method_id and instance_id are being saved separately now. However, the instance ID is always set to 0.
We have been using the long method_id (‘wbs:b4a11a2f_ups_courier_tracked’) with some 3rd party software via the API to handle shipping etc and need this extra information to identify which method is being used.
Any ideas what we can do?
Let me know if you need any more information.
1. WordPress: 4.9.6, WooCommerce: 3.4.0, Weight Based Shipping: 5.2.0, PHP: 7.0.30.
2. N/A
3. I’m testing it with the order:
Any order using a WBS defined shipping method (not using WC shipping zones)4. I expect to see
method_id: wbs:b4a11a2f_ups_courier_tracked5. I do see instead:
method_id: wbs
The topic ‘method_id has changed since WC3.4’ is closed to new replies.