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) );
?>