woocommerce/templates/checkout/order-receipt.php

47 lines
1.5 KiB
PHP
Raw Normal View History

2017-03-23 11:25:08 +00:00
<?php
/**
2017-07-15 16:41:34 +00:00
* Checkout Order Receipt Template
2017-03-23 11:25:08 +00:00
*
2017-07-15 16:41:34 +00:00
* This template can be overridden by copying it to yourtheme/woocommerce/checkout/order-receipt.php.
2017-03-23 11:25:08 +00:00
*
* HOWEVER, on occasion WooCommerce will need to update template files and you
* (the theme developer) will need to copy the new files to your theme to
* maintain compatibility. We try to do this as little as possible, but it does
* happen. When this occurs the version of the template file will be bumped and
* the readme will list any important changes.
*
* @see https://docs.woocommerce.com/document/template-structure/
* @package WooCommerce/Templates
2017-08-09 09:11:07 +00:00
* @version 3.2.0
2017-03-23 11:25:08 +00:00
*/
if ( ! defined( 'ABSPATH' ) ) {
2017-08-09 09:11:07 +00:00
exit;
2017-03-23 11:25:08 +00:00
}
?>
<ul class="order_details">
<li class="order">
2017-08-09 09:11:07 +00:00
<?php esc_html_e( 'Order number:', 'woocommerce' ); ?>
<strong><?php echo esc_html( $order->get_order_number() ); ?></strong>
2017-03-23 11:25:08 +00:00
</li>
<li class="date">
2017-08-09 09:11:07 +00:00
<?php esc_html_e( 'Date:', 'woocommerce' ); ?>
<strong><?php echo esc_html( wc_format_datetime( $order->get_date_created() ) ); ?></strong>
2017-03-23 11:25:08 +00:00
</li>
<li class="total">
2017-08-09 09:11:07 +00:00
<?php esc_html_e( 'Total:', 'woocommerce' ); ?>
<strong><?php echo wp_kses_post( $order->get_formatted_order_total() ); ?></strong>
2017-03-23 11:25:08 +00:00
</li>
2017-07-11 08:51:11 +00:00
<?php if ( $order->get_payment_method_title() ) : ?>
2017-03-23 11:25:08 +00:00
<li class="method">
2017-08-09 09:11:07 +00:00
<?php esc_html_e( 'Payment method:', 'woocommerce' ); ?>
2017-08-10 16:08:30 +00:00
<strong><?php echo wp_kses_post( $order->get_payment_method_title() ); ?></strong>
2017-03-23 11:25:08 +00:00
</li>
<?php endif; ?>
</ul>
<?php do_action( 'woocommerce_receipt_' . $order->get_payment_method(), $order->get_id() ); ?>
2017-03-23 11:25:08 +00:00
2017-08-09 09:11:07 +00:00
<div class="clear"></div>