term_id, 'meta',true ); ?>

( )



%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 ) && 'completed' == $status ) { $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 ( '1' == $order_info['options']['full_information'] ) { if ( '1' == $order_info['options']['product_image'] ) { if ( $imgurl != '' ) { $rows .= ''; } elseif ( $ali_image != '' ) { $rows .= ''; } else { $rows .= ''; } } } elseif ( '1' == $order_info['options']['product_image'] ) { if ( $imgurl != '' ) { $rows .= ''; } elseif ( $ali_image != '' ) { $rows .= ''; } else { $rows .= ''; } } $rows .= ''; if ( '1' == $order_info['options']['full_information'] ) { if ( '1' == $order_info['options']['type_of_package'] ) { $rows .= ''; } } elseif ( '1' == $order_info['options']['type_of_package'] ) { $rows .= ''; } if ( '1' == $order_info['options']['full_information'] ) { if ( '1' == $order_info['options']['product_price'] ) { $rows .= ''; } } elseif ( '1' == $order_info['options']['product_price'] ) { $rows .= ''; } if ( 1 == $split_gst_amount ) { $rows .= ''; $rows .= ''; $rows .= ''; } $rows .= ''; } if ( '0' == $order_info['options']['cost_of_goods'] ) { if ( ( '0' == $order_info['options']['hide_shipping_price'] ) || ( '' == $order_info['options']['hide_shipping_price'] ) ) { $rows .= ''; $rows .= ''; if ( '1' == $order_info['options']['full_information'] ) { if ( '0' == $order_info['options']['cost_of_goods'] ) { $rows .= ''; $rows .= ''; } } elseif ( '0' == $order_info['options']['cost_of_goods'] ) { $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 ( '1' == $order_info['options']['full_information'] ) { if ( '0' == $order_info['options']['cost_of_goods'] ) { if ( ( '0' == $order_info['options']['hide_tax'] ) || ( '' == $order_info['options']['hide_tax'] ) ) { $rows .= ''; $rows .= ''; $rows .= ''; $rows .= ''; } } } elseif ( '0' == $order_info['options']['cost_of_goods'] ) { $rows .= ''; $rows .= ''; $rows .= ''; $rows .= ''; } // Tax price End. if ( ( '0' == $order_info['options']['hide_shipping_price'] ) || ( '' == $order_info['options']['hide_shipping_price'] ) ) { $grandtotal = $order_subtotal + $get_tax_total + $get_shipping_total; } else { $grandtotal = $order_subtotal + $get_tax_total; } if ( '1' == $order_info['options']['full_information'] ) { if ( '1' == $order_info['options']['total_price'] ) { $rows .= ''; $rows .= ''; $rows .= ''; // total price End. $rows .= ''; } } elseif ( '1' == $order_info['options']['total_price'] ) { $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( $prod_info['subtotal_tax'] ) . '' . wc_price( $total + $prod_info['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, ) ) . '
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 ] : ''; $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; } ?>




 
' . $store_address . '
' . $store_address_2 . '
' . $store_city . '
' . $store_postcode; $order_billing_email = opmc_hpos_get_post_meta( $order_info['id'], '_billing_email' ); $order_billing_phone = opmc_hpos_get_post_meta( $order_info['id'], '_billing_phone' ); $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_billing_postcode . ' ' . $order_billing_country . ' ' . $order_billing_email . ' ' . $order_billing_phone; $client_info = '

' . $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_billing_postcode . ' ' . $order_billing_country; $contact_info = $order_billing_email . ' ' . $order_billing_phone; $mainsupplier_id = $supplier_info['id']; $sup = wc_dropshipping_get_dropship_supplier( $mainsupplier_id ); ?> ' . $sup['address_line2'] . '
' . $sup['supplier_city'] . '
' . $sup['country_state'] . '
' . $sup['postcode_zip'] . '
' ); } ?>
 
' . $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; $full_store_address = '
' . $store_address . '
' . $store_address_2 . '
' . $store_city . '
' . $store_postcode; $mainsupplier_id = $supplier_info['id']; $sup = wc_dropshipping_get_dropship_supplier( $mainsupplier_id ); ?> ' . $sup['address_line2'] . '
' . $sup['supplier_city'] . '
' . $sup['country_state'] . '
' . $sup['postcode_zip'] . '
' ); } ?>




 



 



'; } ?>