2011-12-09 17:01:56 +00:00
< ? php
/**
2012-08-14 18:05:45 +00:00
* My Account page
*
2015-10-01 14:07:20 +00:00
* This template can be overridden by copying it to yourtheme / woocommerce / single - product . php
*
* HOWEVER , on occasion WooCommerce will need to update template files and you ( the theme developer )
* will need to copy the new files to your theme to maintain compatibility . We try to do this
* as little as possible , but it does happen . When this occurs the version of the template file will
* be bumped and the readme will list any important changes .
*
* @ see http :// docs . woothemes . com / document / template - structure /
2012-08-14 18:05:45 +00:00
* @ author WooThemes
* @ package WooCommerce / Templates
2012-12-23 12:19:56 +00:00
* @ version 2.0 . 0
2011-12-09 17:01:56 +00:00
*/
2012-08-14 18:05:45 +00:00
2014-04-23 10:35:43 +00:00
if ( ! defined ( 'ABSPATH' ) ) {
2014-09-22 16:31:03 +00:00
exit ; // Exit if accessed directly
2014-04-23 10:35:43 +00:00
}
2011-12-09 17:01:56 +00:00
2013-11-13 04:34:55 +00:00
wc_print_notices (); ?>
2011-12-09 17:01:56 +00:00
2012-12-23 12:19:56 +00:00
< p class = " myaccount_user " >
< ? php
printf (
2014-02-05 02:57:03 +00:00
__ ( 'Hello <strong>%1$s</strong> (not %1$s? <a href="%2$s">Sign out</a>).' , 'woocommerce' ) . ' ' ,
2013-08-23 15:41:02 +00:00
$current_user -> display_name ,
2015-02-15 19:13:22 +00:00
wc_get_endpoint_url ( 'customer-logout' , '' , wc_get_page_permalink ( 'myaccount' ) )
2013-08-23 15:41:02 +00:00
);
printf ( __ ( 'From your account dashboard you can view your recent orders, manage your shipping and billing addresses and <a href="%s">edit your password and account details</a>.' , 'woocommerce' ),
2013-11-25 14:07:22 +00:00
wc_customer_edit_account_url ()
2012-12-23 12:19:56 +00:00
);
?>
</ p >
2011-12-09 17:01:56 +00:00
2012-10-09 13:00:08 +00:00
< ? php do_action ( 'woocommerce_before_my_account' ); ?>
2013-11-25 12:45:04 +00:00
< ? php wc_get_template ( 'myaccount/my-downloads.php' ); ?>
2012-10-09 13:00:08 +00:00
2013-11-25 12:45:04 +00:00
< ? php wc_get_template ( 'myaccount/my-orders.php' , array ( 'order_count' => $order_count ) ); ?>
2012-10-09 13:00:08 +00:00
2013-11-25 12:45:04 +00:00
< ? php wc_get_template ( 'myaccount/my-address.php' ); ?>
2012-10-09 13:00:08 +00:00
2014-02-05 02:55:27 +00:00
< ? php do_action ( 'woocommerce_after_my_account' ); ?>