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:
2026-02-28 10:43:30 +01:00
parent 594d810439
commit 8b1793097c
22 changed files with 1377 additions and 20 deletions

View File

@@ -276,3 +276,72 @@ header.sticky-top.is-stuck {
.wp-block-navigation__container {
overflow: visible !important;
}
/* ==========================================================================
My Account
Navigation and layout for the My Account area.
========================================================================== */
.woocommerce-MyAccount-navigation .list-group-item.active {
font-weight: 600;
}
/* Order status marks */
.woocommerce-order-details mark {
background: none;
font-weight: 600;
}
/* View-order notes */
.woocommerce-OrderUpdate-description p:last-child {
margin-bottom: 0;
}
/* Address cards */
.woocommerce-Address address {
font-style: normal;
line-height: 1.6;
}
/* My Account forms — apply Bootstrap form-control styles */
.woocommerce-MyAccount-content .form-row input.input-text,
.woocommerce-MyAccount-content .form-row textarea,
.woocommerce-MyAccount-content .form-row select {
display: block;
width: 100%;
padding: 0.375rem 0.75rem;
font-size: 1rem;
font-weight: 400;
line-height: 1.5;
color: var(--bs-body-color);
background-color: var(--bs-body-bg);
border: var(--bs-border-width) solid var(--bs-border-color);
border-radius: var(--bs-border-radius);
transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}
.woocommerce-MyAccount-content .form-row input.input-text:focus,
.woocommerce-MyAccount-content .form-row textarea:focus,
.woocommerce-MyAccount-content .form-row select:focus {
border-color: #86b7fe;
outline: 0;
box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}
/* ==========================================================================
Order Details
Styling for the order details and tracking pages.
========================================================================== */
.woocommerce-order-details .table tfoot th {
font-weight: 500;
}
.woocommerce-order-details .table tfoot tr:last-child th,
.woocommerce-order-details .table tfoot tr:last-child td {
font-weight: 700;
}
.product-quantity {
white-space: nowrap;
}