• Resolved chemistrap

    (@chemistrap1)


    Hello there,
    Im using this plugin and planning to upgrade to PRO version. But i have ask to something about meta key.
    Im using local SMS company and they have not integrated shipping tracking plugins but they just support meta keys.
    For example they say when you use [meta:metakey] it should work and i tried [meta:tracking_code] and also [meta:tracking_number] but it did not work
    Could you please explain how should insert that for meta key?
    Thnx

Viewing 7 replies - 1 through 7 (of 7 total)
  • Hi,
    Our plugin does not save tracking number with post meta key so you can not use it that way.
    And i’m not sure if the [meta:metakey] they say is post meta or something. Maybe you should ask them to explain more clearly.
    Best regards

    Thread Starter chemistrap

    (@chemistrap1)

    Hello again,
    Yes they mean post meta key, and i really upset for the plugin does not save meta key. How can i make save that information as meta key? Thank you

    Sorry i can not help you with that. Our plugin manages tracking at order line items level and beside tracking number, carrier info are saved within the same field.

    Thread Starter chemistrap

    (@chemistrap1)

    When i enter tracking code on order page can we also save as order’s custom field as a meta key?

    • This reply was modified 4 years, 5 months ago by chemistrap.

    Please try this:

    add_action( 'vi_woo_orders_tracking_single_edit_tracking_change', function ( $tracking_change, $current_tracking_data, $item_id, $order_id, $response ) {
    	if ( ! empty( $current_tracking_data['tracking_number'] ) ) {
    		update_post_meta( $order_id, 'chemistrap_tracking_number', $current_tracking_data['tracking_number'] );
    	}
    }, 10, 5 );

    And the custom field to save tracking number is chemistrap_tracking_number

    Thread Starter chemistrap

    (@chemistrap1)

    Thank you so much for helping i will try this code my stage version firstyl, and by the way im using YITH Order Tracking plugin they are using already meta keys
    Thnx

    You’re welcome.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Meta Key’ is closed to new replies.