show_messages(); ?>
%s. From your account dashboard you can view your recent orders, manage your shipping and billing addresses and change your password .', 'woothemes'), $current_user->display_name, get_permalink(get_option('woocommerce_change_password_page_id'))); ?>
customer->get_downloadable_products()) : ?>
$recent_orders,
'meta_key' => '_customer_user',
'meta_value' => get_current_user_id(),
'post_type' => 'shop_order',
'post_status' => 'publish'
);
$customer_orders = get_posts($args);
if ($customer_orders) :
?>
populate($customer_order);
?>
id; ?>
order_date)); ?>
formatted_shipping_address) echo $order->formatted_shipping_address; else echo '–'; ?>
order_total); ?>
status, 'shop_order_status');
echo __($status->name, 'woothemes');
?>
status, array('pending', 'failed'))) : ?>
countries->countries[get_user_meta( get_current_user_id(), 'billing_country', true )])) $country = $woocommerce->countries->countries[get_user_meta( get_current_user_id(), 'billing_country', true )]; else $country = '';
$address = array(
get_user_meta( get_current_user_id(), 'billing_first_name', true ) . ' ' . get_user_meta( get_current_user_id(), 'billing_last_name', true )
,get_user_meta( get_current_user_id(), 'billing_company', true )
,get_user_meta( get_current_user_id(), 'billing_address_1', true )
,get_user_meta( get_current_user_id(), 'billing_address_2', true )
,get_user_meta( get_current_user_id(), 'billing_city', true )
,get_user_meta( get_current_user_id(), 'billing_state', true )
,get_user_meta( get_current_user_id(), 'billing_postcode', true )
,$country
);
$address = array_map('trim', $address);
$formatted_address = array();
foreach ($address as $part) if (!empty($part)) $formatted_address[] = $part;
$formatted_address = implode(', ', $formatted_address);
if (!$formatted_address) _e('You have not set up a billing address yet.', 'woothemes'); else echo $formatted_address;
?>
countries->countries[get_user_meta( get_current_user_id(), 'shipping_country', true )])) $country = $woocommerce->countries->countries[get_user_meta( get_current_user_id(), 'shipping_country', true )]; else $country = '';
$address = array(
get_user_meta( get_current_user_id(), 'shipping_first_name', true ) . ' ' . get_user_meta( get_current_user_id(), 'shipping_last_name', true )
,get_user_meta( get_current_user_id(), 'shipping_company', true )
,get_user_meta( get_current_user_id(), 'shipping_address_1', true )
,get_user_meta( get_current_user_id(), 'shipping_address_1', true )
,get_user_meta( get_current_user_id(), 'shipping_city', true )
,get_user_meta( get_current_user_id(), 'shipping_state', true )
,get_user_meta( get_current_user_id(), 'shipping_postcode', true )
,$country
);
$address = array_map('trim', $address);
$formatted_address = array();
foreach ($address as $part) if (!empty($part)) $formatted_address[] = $part;
$formatted_address = implode(', ', $formatted_address);
if (!$formatted_address) _e('You have not set up a shipping address yet.', 'woothemes'); else echo $formatted_address;
?>