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:
52
templates/order/form-tracking.html.twig
Normal file
52
templates/order/form-tracking.html.twig
Normal file
@@ -0,0 +1,52 @@
|
||||
{#
|
||||
# Order Tracking Form (Bootstrap 5 Override)
|
||||
#
|
||||
# Form to look up an order by ID and billing email.
|
||||
#
|
||||
# WooCommerce PHP equivalent: order/form-tracking.php
|
||||
#
|
||||
# @package WcBootstrap
|
||||
# @since 0.1.0
|
||||
#}
|
||||
|
||||
<form action="{{ get_permalink()|esc_url }}" method="post" class="woocommerce-form woocommerce-form-track-order track_order">
|
||||
|
||||
{{ do_action('woocommerce_order_tracking_form_start') }}
|
||||
|
||||
<p class="mb-3">
|
||||
{{ __('To track your order please enter your Order ID in the box below and press the "Track" button. This was given to you on your receipt and in the confirmation email you should have received.') }}
|
||||
</p>
|
||||
|
||||
<div class="row g-3 mb-3">
|
||||
<div class="col-sm-6">
|
||||
<label for="orderid" class="form-label">{{ __('Order ID') }}</label>
|
||||
<input type="text"
|
||||
class="form-control"
|
||||
name="orderid"
|
||||
id="orderid"
|
||||
placeholder="{{ __('Found in your order confirmation email.') }}" />
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<label for="order_email" class="form-label">{{ __('Billing email') }}</label>
|
||||
<input type="email"
|
||||
class="form-control"
|
||||
name="order_email"
|
||||
id="order_email"
|
||||
placeholder="{{ __('Email you used during checkout.') }}" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{ do_action('woocommerce_order_tracking_form') }}
|
||||
|
||||
<div class="mt-3">
|
||||
<button type="submit" class="btn btn-primary" name="track" value="{{ __('Track') }}">
|
||||
<i class="bi bi-search me-1" aria-hidden="true"></i>
|
||||
{{ __('Track') }}
|
||||
</button>
|
||||
</div>
|
||||
|
||||
{{ wp_nonce_field('woocommerce-order_tracking', 'woocommerce-order-tracking-nonce') }}
|
||||
|
||||
{{ do_action('woocommerce_order_tracking_form_end') }}
|
||||
|
||||
</form>
|
||||
Reference in New Issue
Block a user