Order shipped notification adsw_tracking_status translation

caalo

New Member
hi,
how can fix the email content for Order shipped notification

is adsw_tracking_status:dispatched

See screen shoot in attachment.

Thank you.
 

Attachments

  • Capture.JPG
    Capture.JPG
    38.2 KB · Views: 28

caalo

New Member
alidropship support give me this anwer, i will wait the next update.

The issue should be fixed in the next update of the plugin. In the meantime, you can add the code below to the functions.php folder of your theme (in cPanel->File manager->public_html->wp-content->themes->davinciwoo):

function my_order_item_get_formatted_meta_data( $formatted_meta, $obj ) {

if( is_array( $formatted_meta ) ) foreach( $formatted_meta as $key => $val ) {

if( in_array( $val->key, [ 'adsw_tracking_status' ] ) )
unset($formatted_meta[ $key ]);
}

return $formatted_meta;
}
add_action( 'woocommerce_order_item_get_formatted_meta_data', 'my_order_item_get_formatted_meta_data', 10, 2 );
 
Top