You've already forked wc-bootstrap
Implement Phase 6 & 7: My Account and Order Details templates (Bootstrap 5, HPOS)
Phase 6 - My Account (15 templates): - Account layout with sidebar navigation (list-group) and content area - Orders table with status badges, pagination, and responsive design - View order with order notes as list-group items - Address cards with edit/add buttons - Login/Register side-by-side card layout - Account edit, password change, downloads, payment methods forms - Lost/reset password forms and confirmation Phase 7 - Order Details (5 templates): - Order details table with items, totals, and customer note - Line item rows with refund quantity display - Customer billing/shipping address cards - Order tracking form - Order again button All order templates use WC_Order object methods only (HPOS compatible). Bootstrap 5 components: cards, tables, list-groups, badges, forms, alerts. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
40
templates/myaccount/dashboard.html.twig
Normal file
40
templates/myaccount/dashboard.html.twig
Normal file
@@ -0,0 +1,40 @@
|
||||
{#
|
||||
# My Account Dashboard (Bootstrap 5 Override)
|
||||
#
|
||||
# Shows the welcome screen on the account dashboard.
|
||||
#
|
||||
# Expected context:
|
||||
# current_user - WP_User object
|
||||
#
|
||||
# WooCommerce PHP equivalent: myaccount/dashboard.php
|
||||
#
|
||||
# @package WcBootstrap
|
||||
# @since 0.1.0
|
||||
#}
|
||||
|
||||
<p>
|
||||
{{ __('Hello %1$s (not %1$s? <a href="%2$s">Log out</a>)')|format(
|
||||
'<strong>' ~ current_user.display_name|esc_html ~ '</strong>',
|
||||
wc_logout_url()|esc_url
|
||||
)|wp_kses_post }}
|
||||
</p>
|
||||
|
||||
<p>
|
||||
{% if wc_shipping_enabled() %}
|
||||
{{ __('From your account dashboard you can view your <a href="%1$s">recent orders</a>, manage your <a href="%2$s">shipping and billing addresses</a>, and <a href="%3$s">edit your password and account details</a>.')|format(
|
||||
wc_get_endpoint_url('orders')|esc_url,
|
||||
wc_get_endpoint_url('edit-address')|esc_url,
|
||||
wc_get_endpoint_url('edit-account')|esc_url
|
||||
)|wp_kses_post }}
|
||||
{% else %}
|
||||
{{ __('From your account dashboard you can view your <a href="%1$s">recent orders</a>, manage your <a href="%2$s">billing address</a>, and <a href="%3$s">edit your password and account details</a>.')|format(
|
||||
wc_get_endpoint_url('orders')|esc_url,
|
||||
wc_get_endpoint_url('edit-address')|esc_url,
|
||||
wc_get_endpoint_url('edit-account')|esc_url
|
||||
)|wp_kses_post }}
|
||||
{% endif %}
|
||||
</p>
|
||||
|
||||
{{ do_action('woocommerce_account_dashboard') }}
|
||||
{{ do_action('woocommerce_before_my_account') }}
|
||||
{{ do_action('woocommerce_after_my_account') }}
|
||||
Reference in New Issue
Block a user