get_currency(); ?> term_id, 'meta',true ); ?>

( )

get_payment_method_title() ?>
get_payment_method_title(); ?>
get_billing_phone(); } //$order_billing_phone = opmc_hpos_get_post_meta($order_info['id'], '_billing_phone'); $admin_email = get_option('admin_email'); if (('1' == $options['hide_client_info_Suppliers']) && (0 == $options['hide_contact_info_Suppliers'])) { if (@$order_info['options']['customer_email'] == '1') { printf(__('Customer Email : %s', 'woocommerce-dropshipping'), @$order_info['billing_info']['billing_email']); ?>

%2$s', 'woocommerce-dropshipping'), $order_billing_phone, $order_billing_phone); } } elseif (($options['packing_slip_customer_service_email'] == '') && (1 == $store_add_shipping_add)) { printf(__('Customer Email : %s', 'woocommerce-dropshipping'), $admin_email); } elseif (($packing_slip_customer_service_email != '') && (1 == $store_add_shipping_add)) { printf(__('Customer Email : %s', 'woocommerce-dropshipping'), @$order_info['options']['packing_slip_customer_service_email']); } else if (0 == $options['hide_contact_info_Suppliers']) { if (@$order_info['options']['customer_email'] == '1') { printf(__('Customer Email : %s', 'woocommerce-dropshipping'), @$order_info['billing_info']['billing_email']); ?>

%2$s', 'woocommerce-dropshipping'), $order_billing_phone, $order_billing_phone); } } else if (1 == $options['hide_contact_info_Suppliers']) { if (@$order_info['options']['customer_email'] == '1') { printf(__('Customer Email : %s', 'woocommerce-dropshipping'), @$order_info['billing_info']['billing_email']); ?>

%2$s', 'woocommerce-dropshipping'), $order_billing_phone, $order_billing_phone); } } else { echo ''; } ?>
get_status(); if (isset($status) && $status == 'completed') { $items = $order->get_items(); $arrayuser = array(); foreach ($items as $item_id => $item) { $supplier_id = get_post_meta($item_id, 'supplierid', true); $arg = array( 'meta_key' => 'supplier_id', 'meta_value' => $supplier_id, ); $user_query = new WP_User_Query($arg); $authors = $user_query->get_results(); foreach ($authors as $author) { $arrayuser[] = $author->ID; } } $uniqe_userid = array_unique($arrayuser); $dropshipper_shipping_info = ''; $mainsupplier_id = $supplier_info['id']; foreach ($uniqe_userid as $key => $value) { $supplier_id = get_user_meta($value, 'supplier_id', true); if ($mainsupplier_id == $supplier_id) { $dropshipper_shipping_info = opmc_hpos_get_post_meta($order_info['id'], 'dropshipper_shipping_info_' . $value); } } if (isset($dropshipper_shipping_info)) { ?>
'; if ($order_info['options']['full_information'] == '1') { if ($order_info['options']['product_image'] == '1') { if ($imgurl != '') { $rows .= ''; } elseif ($ali_image != '') { $rows .= ''; } else { $rows .= ''; } } } elseif ($order_info['options']['product_image'] == '1') { if ($imgurl != '') { $rows .= ''; } elseif ($ali_image != '') { $rows .= ''; } else { $rows .= ''; } } $rows .= ''; if ($order_info['options']['full_information'] == '1') { if ($order_info['options']['type_of_package'] == '1') { $rows .= ''; } } elseif ($order_info['options']['type_of_package'] == '1') { $rows .= ''; } if ($order_info['options']['full_information'] == '1') { if ($order_info['options']['product_price'] == '1') { $rows .= ''; } } elseif ($order_info['options']['product_price'] == '1') { $rows .= ''; } if ($split_gst_amount == 1) { $rows .= ''; $rows .= ''; $rows .= ''; } $rows .= ''; } if ($order_info['options']['cost_of_goods'] == '0') { if (($order_info['options']['hide_shipping_price'] == '0') || ($order_info['options']['hide_shipping_price'] == '')) { $rows .= ''; $rows .= ''; if ($order_info['options']['full_information'] == '1') { if ($order_info['options']['cost_of_goods'] == '0') { $rows .= ''; $rows .= ''; } } elseif ($order_info['options']['cost_of_goods'] == '0') { $rows .= ''; $rows .= ''; } // Tax price End $rows .= ''; } if (isset($order_info['tax_label'])) { $order_tax_label = $order_info['tax_label']; } else { $order_tax_label = __('taxes', 'woocommerce-dropshipping'); } if ($order_info['options']['full_information'] == '1') { if ($order_info['options']['cost_of_goods'] == '0') { if (($order_info['options']['hide_tax'] == '0') || ($order_info['options']['hide_tax'] == '')) { $rows .= ''; $rows .= ''; $rows .= ''; $rows .= ''; } } } elseif ($order_info['options']['cost_of_goods'] == '0') { $rows .= ''; $rows .= ''; $rows .= ''; $rows .= ''; } // Tax price End if (($order_info['options']['hide_shipping_price'] == '0') || ($order_info['options']['hide_shipping_price'] == '')) { $grandtotal = $order_subtotal + $get_tax_total + $get_shipping_total; } else { $grandtotal = $order_subtotal + $get_tax_total; } if ($order_info['options']['full_information'] == '1') { if ($order_info['options']['total_price'] == '1') { $rows .= ''; $rows .= ''; $rows .= ''; // total price End $rows .= ''; } } elseif ($order_info['options']['total_price'] == '1') { $rows .= ''; $rows .= ''; $rows .= ''; // total price End $rows .= ''; } } echo $rows; ?>
' . $prod_info['sku'] . ' ' . $prod_info['variation_name'] . '
'; $rows .= ' ' . $prod_info['variation_labels']; foreach ($prod_info['order_item_meta'] as $meta) { $rows .= '
' . $meta->key . ':' . trim($meta->value); } $rows .= '
' . $prod_info['qty'] . '' . $typeofpackage . '' . $typeofpackage . '' . $price . '' . $price . '' . wc_price($total) . '' . wc_price($subtotal_tax) . '' . wc_price($total + $subtotal_tax) . '
' . __('Miscellaneous', 'woocommerce-dropshipping') . '
' . __('Shipping Cost', 'woocommerce-dropshipping') . '' . wc_price( $get_shipping_total, array( 'currency' => $order_currency, 'decimal_separator' => $woocommerce_price_decimal_sep, 'thousand_separator' => $woocommerce_price_thousand_sep, ) ) . ' ' . __('Shipping Cost', 'woocommerce-dropshipping') . ' ' . wc_price( $get_shipping_total, array( 'currency' => $order_currency, 'decimal_separator' => $woocommerce_price_decimal_sep, 'thousand_separator' => $woocommerce_price_thousand_sep, ) ) . '
' . $order_tax_label . '' . wc_price( $get_tax_total, array( 'currency' => $order_currency, 'decimal_separator' => $woocommerce_price_decimal_sep, 'thousand_separator' => $woocommerce_price_thousand_sep, ) ) . '
' . $order_tax_label . '' . wc_price( $get_tax_total, array( 'currency' => $order_currency, 'decimal_separator' => $woocommerce_price_decimal_sep, 'thousand_separator' => $woocommerce_price_thousand_sep, ) ) . '
' . __('Total', 'woocommerce-dropshipping') . ' ' . wc_price( $grandtotal, array( 'currency' => $order_currency, 'decimal_separator' => $woocommerce_price_decimal_sep, 'thousand_separator' => $woocommerce_price_thousand_sep, ) ) . '
' . __('Total', 'woocommerce-dropshipping') . '' . wc_price( $grandtotal, array( 'currency' => $order_currency, 'decimal_separator' => $woocommerce_price_decimal_sep, 'thousand_separator' => $woocommerce_price_thousand_sep, ) ) . '
get_billing_first_name() : ''; //$order_billing_last_name = opmc_hpos_get_post_meta($order_info['id'], '_billing_last_name'); $order_billing_last_name = $order ? $order->get_billing_last_name() : ''; //$order_billing_address_1 = opmc_hpos_get_post_meta($order_info['id'], '_billing_address_1'); $order_billing_address_1 = $order ? $order->get_billing_address_1() : ''; //$order_billing_address_2 = opmc_hpos_get_post_meta($order_info['id'], '_billing_address_2'); $order_billing_address_2 = $order ? $order->get_billing_address_2() : ''; //$order_billing_company = opmc_hpos_get_post_meta($order_info['id'], '_billing_company'); $order_billing_company = $order ? $order->get_billing_country() : ''; //$order_billing_city = opmc_hpos_get_post_meta($order_info['id'], '_billing_city'); $order_billing_city = $order ? $order->get_billing_city() : ''; //$order_billing_state = opmc_hpos_get_post_meta($order_info['id'], '_billing_state'); $order_billing_state = $order ? $order->get_billing_state() : ''; //$order_billing_postcode = opmc_hpos_get_post_meta($order_info['id'], '_billing_postcode'); $order_billing_postcode = $order ? $order->get_billing_postcode() : ''; //$order_billing_country = opmc_hpos_get_post_meta($order_info['id'], '_billing_country'); $order_billing_country = $order ? $order->get_billing_country() : ''; //$order_billing_email = opmc_hpos_get_post_meta($order_info['id'], '_billing_email'); $order_billing_email = $order ? $order->get_billing_email() : ''; //$order_billing_phone = opmc_hpos_get_post_meta($order_info['id'], '_billing_phone'); $order_billing_phone = $order ? $order->get_billing_phone() : ''; //$order_shipping_first_name = opmc_hpos_get_post_meta($order_info['id'], '_shipping_first_name'); $order_shipping_first_name = $order ? $order->get_shipping_first_name() : ''; //$order_shipping_last_name = opmc_hpos_get_post_meta($order_info['id'], '_shipping_last_name'); $order_shipping_last_name = $order ? $order->get_shipping_last_name() : ''; //$order_shipping_address_1 = opmc_hpos_get_post_meta($order_info['id'], '_shipping_address_1'); $order_shipping_address_1 = $order ? $order->get_shipping_address_1() : ''; //$order_shipping_address_2 = opmc_hpos_get_post_meta($order_info['id'], '_shipping_address_2'); $order_shipping_address_2 = $order ? $order->get_shipping_address_2() : ''; //$order_shipping_company = opmc_hpos_get_post_meta($order_info['id'], '_shipping_company'); $order_shipping_company = $order ? $order->get_shipping_company() : ''; //$order_shipping_city = opmc_hpos_get_post_meta($order_info['id'], '_shipping_city'); $order_shipping_city = $order ? $order->get_shipping_city() : ''; //$order_shipping_state = opmc_hpos_get_post_meta($order_info['id'], '_shipping_state'); $order_shipping_state = $order ? $order->get_shipping_state() : ''; //$order_shipping_postcode = opmc_hpos_get_post_meta($order_info['id'], '_shipping_postcode'); $order_shipping_postcode = $order ? $order->get_shipping_postcode() : ''; //$order_shipping_country = opmc_hpos_get_post_meta($order_info['id'], '_shipping_country'); $order_shipping_country = $order ? $order->get_shipping_country() : ''; $states = WC()->countries->get_states($order_billing_country); $order_billing_state = ! empty($states[$order_billing_state]) ? $states[$order_billing_state] : ''; $order_billing_country = WC()->countries->countries[$order_billing_country]; $states = WC()->countries->get_states($order_shipping_country); $order_shipping_state = ! empty($states[$order_shipping_state]) ? $states[$order_shipping_state] : ''; if (! empty($order_shipping_country)) { $order_shipping_country = WC()->countries->countries[$order_shipping_country]; } if (! empty($order_billing_address_2)) { $fullBillAddress = $order_billing_first_name . ' ' . $order_billing_last_name . '
' . $order_billing_company . '
' . $order_billing_address_1 . ',
' . $order_billing_address_2 . '
' . $order_billing_city . ' ' . $order_billing_state . ' ' . $order_shipping_postcode . '
' . $order_billing_country; } else { $fullBillAddress = $order_billing_first_name . ' ' . $order_billing_last_name . '
' . $order_billing_company . '
' . $order_billing_address_1 . '
' . $order_billing_city . ' ' . $order_billing_state . ' ' . $order_shipping_postcode . '
' . $order_billing_country; } if (! empty($order_shipping_address_2)) { $full_ship_address = $order_shipping_first_name . ' ' . $order_shipping_last_name . '
' . $order_shipping_company . '
' . $order_shipping_address_1 . ',
' . $order_shipping_address_2 . '
' . $order_shipping_city . ' ' . $order_shipping_state . ' ' . $order_shipping_postcode . '
' . $order_shipping_country; } else { $full_ship_address = $order_shipping_first_name . ' ' . $order_shipping_last_name . '
' . $order_shipping_company . '
' . $order_shipping_address_1 . '
' . $order_shipping_city . ' ' . $order_shipping_state . ' ' . $order_shipping_postcode . '
' . $order_shipping_country; } if (empty($order_shipping_address_1)) { $full_ship_address = $fullBillAddress; } ?>
 
get_billing_phone(); $order_billing_email = $order->get_billing_email(); } $client_info = ''. $order_billing_first_name . ' ' . $order_billing_last_name . "\n" . $order_billing_company . "\n" . $order_billing_address_1 . "\n" . $order_billing_address_2 . '' . $order_billing_city . ' ' . $order_billing_state . ' ' . $order_billing_postcode . "\n" . $order_billing_country; $contact_info = $order_billing_email . "\n" . $order_billing_phone; $fullBillAddress = $client_info . "\n" . $contact_info; $mainsupplier_id = $supplier_info['id']; $sup = wc_dropshipping_get_dropship_supplier($mainsupplier_id); if ($hide_client_info_Suppliers == 0 && $hide_contact_info_Suppliers == 1) { echo nl2br($client_info); } elseif ($hide_client_info_Suppliers == 1 && $hide_contact_info_Suppliers == 0) { echo nl2br($contact_info); } elseif ($hide_client_info_Suppliers == 0 && $hide_contact_info_Suppliers == 0 && $store_add_shipping_add == 0 && empty($sup['address_line1'])) { echo nl2br($fullBillAddress); } if (!empty($sup['address_line1']) && $hide_client_info_Suppliers == 0 && $hide_contact_info_Suppliers == 0) { echo nl2br($sup['address_line1'] . "\n" . $sup['address_line2'] . "\n" . $sup['supplier_city'] . "\n" . $sup['country_state'] . "\n" . $sup['postcode_zip']); } if ($store_add_shipping_add == 1) { echo nl2br($full_store_address); } ?>
 
' .$order_shipping_first_name . ' ' . $order_shipping_last_name . "\n" . $order_shipping_company . "\n" . $order_shipping_address_1 . "\n" . $order_shipping_address_2 . '' . $order_shipping_city . ' ' . $order_shipping_state . ' ' . $order_shipping_postcode . "\n" . $order_shipping_country; if ($hide_client_info_Suppliers == 0 && $hide_contact_info_Suppliers == 1) { echo nl2br($full_ship_address); } elseif ($hide_client_info_Suppliers == 0 && $hide_contact_info_Suppliers == 0 && $store_add_shipping_add == 0 && empty($sup['address_line1'])) { echo nl2br($full_ship_address); } if (!empty($sup['address_line1']) && $hide_client_info_Suppliers == 0 && $hide_contact_info_Suppliers == 0) { echo nl2br($sup['address_line1'] . "\n" . $sup['address_line2'] . "\n" . $sup['supplier_city'] . "\n" . $sup['country_state'] . "\n" . $sup['postcode_zip']); } if ($store_add_shipping_add == 1) { echo nl2br($full_store_address); } ?>





 




 



'; } ?>