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
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.
When i enter tracking code on order page can we also save as order’s custom field as a meta key?
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
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