• Resolved Carin

    (@sparksfreebies)


    I need to add tracking number to the woocommerce emails, how do I do this what is the tracking metakey

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support 3 Sons Development – a11n

    (@3sonsdevelopment)

    Hi @sparksfreebies,

    Excellent question. The labels are stored under the wc_connect_labels key. It’s more information than just the tracking number. Here’s a screenshot to show a sample of how this can look.

    Let us know if you have any questions.

    Thread Starter Carin

    (@sparksfreebies)

    Another plugin I am using -Print PDF Labels, asked for the metakey to insert tracking number into the woocommerce Order Notification email and Invoice, how would I specify the tracking within the wc_connect_labels as a metakey?

    Plugin Support 3 Sons Development – a11n

    (@3sonsdevelopment)

    How would I specify the tracking within the wc_connect_labels as a metakey?

    That’s a great question. This is a situation where it won’t be possible just to insert the wc_connect_labels key and get the tracking number back. The data is stored inside a “serialized array.” An array is a way of storing data with a “map” or sorts to explain what the various pieces of data are. In order to add it to the database, it is converted to a string.

    Most likely, you’ll need some type of custom function that can take this serialized array, convert it back to a regular array, grab the value for the tracking number, and then save it as a separate custom field. Then use that new custom field with the other plugin.

    If you don’t feel comfortable coding that up, there are freelance developers at Codeable who would happy to do it for you.

    https://woocommerce.com/codeable/

    Let me know if you have any questions

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘tracking metakey’ is closed to new replies.