Progressus-io / postnl-for-woocommerce

GNU General Public License v3.0
3 stars 0 forks source link

How is the PostNL tracking number stored in Woocommerce #80

Closed Snoopy1975-2 closed 1 year ago

Snoopy1975-2 commented 1 year ago

Someone is changing an order pick plugin for me, so that when i'm ready with picking the products, i have to scan the shipping label to conform it's the right label for this order. But to make this possible he needs to know how the PostNL tracking code is stored in woocommerce. Can someone help me with this?

sdev1930 commented 1 year ago

I am developing the code. I need to know how the tracking number is stored in Wordpress. Normally it's a custom meta field tied to the order number but I cannot find this in the plugin.

Abdalsalaam commented 1 year ago

Hello @Snoopy1975-2 and @sdev1930 , all plugin data saved in _postnl_order_metadata metadata, and you can find the tracking number in $array['labels']['label']['barcode']

sdev1930 commented 1 year ago

Thanks I appreciate it.