woocommerce/templates/checkout/order-pay.php

50 lines
1.5 KiB
PHP
Raw Normal View History

2017-03-23 11:25:08 +00:00
<?php
/**
* Checkout Order Pay Template
*
* This template can be overridden by copying it to yourtheme/woocommerce/checkout/order-pay.php.
*
* 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/
* @author WooThemes
* @package WooCommerce/Templates
* @version 2.2.0
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly
}
?>
<ul class="order_details">
<li class="order">
<?php _e( 'Order Number:', 'woocommerce' ); ?>
<strong><?php echo $order->get_order_number(); ?></strong>
</li>
<li class="date">
<?php _e( 'Date:', 'woocommerce' ); ?>
<strong><?php echo date_i18n(get_option('date_format'), strtotime($order->order_date)); ?></strong>
</li>
<li class="total">
<?php _e( 'Total:', 'woocommerce' ); ?>
<strong><?php echo $order->get_formatted_order_total(); ?></strong>
</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">
<?php _e( 'Payment Method:', 'woocommerce' ); ?>
<strong><?php
2017-07-11 08:51:11 +00:00
echo $order->get_payment_method_title();
2017-03-23 11:25:08 +00:00
?></strong>
</li>
<?php endif; ?>
</ul>
<?php do_action( 'woocommerce_receipt_' . $order->payment_method, $order_id ); ?>
<div class="clear"></div>