cart-errors.php
5 years ago
form-billing.php
5 years ago
form-checkout.php
5 years ago
form-coupon.php
5 years ago
form-login.php
5 years ago
form-pay.php
5 years ago
form-shipping.php
5 years ago
order-receipt.php
5 years ago
payment-method.php
5 years ago
payment.php
5 years ago
review-order.php
5 years ago
terms.php
5 years ago
thankyou.php
5 years ago
order-receipt.php
47 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Checkout Order Receipt Template |
| 4 | * |
| 5 | * This template can be overridden by copying it to yourtheme/woocommerce/checkout/order-receipt.php. |
| 6 | * |
| 7 | * HOWEVER, on occasion WooCommerce will need to update template files and you |
| 8 | * (the theme developer) will need to copy the new files to your theme to |
| 9 | * maintain compatibility. We try to do this as little as possible, but it does |
| 10 | * happen. When this occurs the version of the template file will be bumped and |
| 11 | * the readme will list any important changes. |
| 12 | * |
| 13 | * @see https://docs.woocommerce.com/document/template-structure/ |
| 14 | * @package WooCommerce\Templates |
| 15 | * @version 3.2.0 |
| 16 | */ |
| 17 | |
| 18 | if ( ! defined( 'ABSPATH' ) ) { |
| 19 | exit; |
| 20 | } |
| 21 | ?> |
| 22 | |
| 23 | <ul class="order_details"> |
| 24 | <li class="order"> |
| 25 | <?php esc_html_e( 'Order number:', 'woocommerce' ); ?> |
| 26 | <strong><?php echo esc_html( $order->get_order_number() ); ?></strong> |
| 27 | </li> |
| 28 | <li class="date"> |
| 29 | <?php esc_html_e( 'Date:', 'woocommerce' ); ?> |
| 30 | <strong><?php echo esc_html( wc_format_datetime( $order->get_date_created() ) ); ?></strong> |
| 31 | </li> |
| 32 | <li class="total"> |
| 33 | <?php esc_html_e( 'Total:', 'woocommerce' ); ?> |
| 34 | <strong><?php echo wp_kses_post( $order->get_formatted_order_total() ); ?></strong> |
| 35 | </li> |
| 36 | <?php if ( $order->get_payment_method_title() ) : ?> |
| 37 | <li class="method"> |
| 38 | <?php esc_html_e( 'Payment method:', 'woocommerce' ); ?> |
| 39 | <strong><?php echo wp_kses_post( $order->get_payment_method_title() ); ?></strong> |
| 40 | </li> |
| 41 | <?php endif; ?> |
| 42 | </ul> |
| 43 | |
| 44 | <?php do_action( 'woocommerce_receipt_' . $order->get_payment_method(), $order->get_id() ); ?> |
| 45 | |
| 46 | <div class="clear"></div> |
| 47 |