ID, 'order_data', true) ); $data['customer_user'] = (int) get_post_meta($post->ID, 'customer_user', true); $order_status = get_the_terms($post->ID, 'shop_order_status'); if ($order_status) : $order_status = current($order_status); $data['order_status'] = $order_status->slug; else : $data['order_status'] = 'pending'; endif; if (!isset($post->post_title) || empty($post->post_title)) : $order_title = 'Order'; else : $order_title = $post->post_title; endif; ?>

__('First Name', 'jigoshop'), 'last_name' => __('Last Name', 'jigoshop'), 'company' => __('Company', 'jigoshop'), 'address_1' => __('Address 1', 'jigoshop'), 'address_2' => __('Address 2', 'jigoshop'), 'city' => __('City', 'jigoshop'), 'postcode' => __('Postcode', 'jigoshop'), 'country' => __('Country', 'jigoshop'), 'state' => __('State/County', 'jigoshop'), 'email' => __('Email Address', 'jigoshop'), 'phone' => __('Tel', 'jigoshop'), ); foreach($billing_fields as $field_id => $field_desc) { $field_id = 'billing_' . $field_id; $field_value = ''; if(isset($data[$field_id])) { $field_value = $data[$field_id]; } echo '

'; } ?>

__('First Name', 'jigoshop'), 'last_name' => __('Last Name', 'jigoshop'), 'company' => __('Company', 'jigoshop'), 'address_1' => __('Address 1', 'jigoshop'), 'address_2' => __('Address 2', 'jigoshop'), 'city' => __('City', 'jigoshop'), 'postcode' => __('Postcode', 'jigoshop'), 'country' => __('Country', 'jigoshop'), 'state' => __('State/County', 'jigoshop') ); foreach($shipping_fields as $field_id => $field_desc) { $field_id = 'shipping_' . $field_id; $field_value = ''; if(isset($data[$field_id])) { $field_value = $data[$field_id]; } echo '

'; } ?>
ID, 'order_items', true) ); ?>
0 && isset($order_items[0]['id'])) foreach ($order_items as $item) : if (isset($item['variation_id']) && $item['variation_id'] > 0) { $_product = new jigoshop_product_variation( $item['variation_id'] ); if(is_array($item['variation'])) { $_product->set_variation_attributes($item['variation']); } } else { $_product = new jigoshop_product( $item['id'] ); } ?>
sku) echo $_product->sku; ?> variation_data)) : echo jigoshop_get_formatted_variation( $_product->variation_data, true ); else : echo '-'; endif; ?>

ID); $coupons = array(); $order_discount_coupons = (array)$_order->get_value_from_data('order_discount_coupons'); if( ! empty( $order_discount_coupons )) { foreach ( $order_discount_coupons as $coupon ) { $coupons[] = isset( $coupon['code'] ) ? $coupon['code'] : ''; } } ?>