Add compatibility with Advanced Shipment Tracking for WooCommerce
-
Hello,
We are a developer of the Advanced Shipment Tracking for WooCommerce plugin. We need to add the compatibility with your plugin.
Can you please add a hook in the save_tracking_code function in the dropshipping-with-ebay-for-woocommerce/includes/classes/model/E2WL_Woocommerce.php file.Replace the save_tracking_code function with below
public function save_tracking_code($external_order_id, $tracking_code) { global $wpdb; $result = $wpdb->get_row("SELECT post_id as ID FROM {$wpdb->postmeta} WHERE meta_key='_e2w_external_order_id' AND meta_value={$external_order_id}"); if ($result) { if (!is_array($tracking_code)) { $tracking_code = array($tracking_code); } foreach ($tracking_code as $code_value) { $code_value = trim(preg_replace('/\s+/', ' ', $code_value)); add_post_meta($result->ID, '_e2w_tracking_code', $code_value); do_action('e2wl_after_add_tracking_code', $result->ID, $code_value); } return true; } else { return false; } }
Let me know if you have any questions.
Thanks
The page I need help with: [log in to see the link]
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Add compatibility with Advanced Shipment Tracking for WooCommerce’ is closed to new replies.