You've already forked wc-bootstrap
Phase 4 - Cart (9 templates): - cart: 8+4 column layout, table-responsive items, coupon input-group - cart-empty: centered empty state with cart-x icon - cart-item-data: inline dl for variation details - cart-totals: card with list-group-flush rows, sticky sidebar - cart-shipping: form-check radio per shipping method - cross-sells: product loop grid section - mini-cart: offcanvas-compatible item list with remove buttons - proceed-to-checkout-button: btn-primary btn-lg w-100 - shipping-calculator: collapsible form with form-select/form-control Phase 5 - Checkout (12 templates): - form-checkout: 7+5 column layout, sticky order review sidebar - form-billing: card with field wrapper, optional account creation - form-shipping: card with ship-to-different-address collapse toggle - form-coupon: collapsible input-group with alert-info toggle - form-login: collapsible login reusing global/form-login.html.twig - review-order: card with table-sm, tfoot subtotal/shipping/total - payment: list-group of payment gateways with radio selection - payment-method: form-check with description collapse - terms: form-check checkbox with T&C link - thankyou: HPOS compatible, alert-success + order details list-group - order-received: confirmation message - cart-errors: alert-danger with return-to-cart button All order data accessed via WC_Order methods (HPOS compatible). CSS additions: cart thumbnail sizing, checkout form field overrides, payment box transitions, dark mode focus states. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
53 lines
1.7 KiB
Twig
53 lines
1.7 KiB
Twig
{#
|
|
# Checkout Form (Bootstrap 5 Override)
|
|
#
|
|
# Main checkout page: 7+5 column layout (customer details + order review).
|
|
#
|
|
# Expected context:
|
|
# checkout - WC_Checkout object
|
|
#
|
|
# WooCommerce PHP equivalent: checkout/form-checkout.php
|
|
#
|
|
# @package WcBootstrap
|
|
# @since 0.1.0
|
|
#}
|
|
|
|
{{ do_action('woocommerce_before_checkout_form', checkout) }}
|
|
|
|
<form name="checkout" method="post" class="checkout woocommerce-checkout"
|
|
action="{{ wc_get_checkout_url()|esc_url }}" enctype="multipart/form-data">
|
|
|
|
<div class="row g-4">
|
|
{# Customer details #}
|
|
<div class="col-lg-7">
|
|
{{ do_action('woocommerce_checkout_before_customer_details') }}
|
|
|
|
<div id="customer_details">
|
|
{{ do_action('woocommerce_checkout_billing') }}
|
|
{{ do_action('woocommerce_checkout_shipping') }}
|
|
</div>
|
|
|
|
{{ do_action('woocommerce_checkout_after_customer_details') }}
|
|
</div>
|
|
|
|
{# Order review sidebar #}
|
|
<div class="col-lg-5">
|
|
<div class="position-sticky" style="top: 1rem;">
|
|
{{ do_action('woocommerce_checkout_before_order_review_heading') }}
|
|
|
|
<h3 class="h5 mb-3" id="order_review_heading">{{ __('Your order') }}</h3>
|
|
|
|
{{ do_action('woocommerce_checkout_before_order_review') }}
|
|
|
|
<div id="order_review" class="woocommerce-checkout-review-order">
|
|
{{ do_action('woocommerce_checkout_order_review') }}
|
|
</div>
|
|
|
|
{{ do_action('woocommerce_checkout_after_order_review') }}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
|
|
{{ do_action('woocommerce_after_checkout_form', checkout) }}
|