Changed template name to receipt

This commit is contained in:
terence1990 2017-07-15 17:41:34 +01:00
parent 8f6dc9588c
commit f93413920b
2 changed files with 3 additions and 3 deletions

View File

@ -130,7 +130,7 @@ class WC_Shortcode_Checkout {
if ( $order->needs_payment() ) {
wc_get_template( 'checkout/order-pay.php', array( 'order' => $order ) );
wc_get_template( 'checkout/order-receipt.php', array( 'order' => $order ) );
} else {
wc_add_notice( sprintf( __( 'This order’s status is “%s”—it cannot be paid for. Please contact us if you need assistance.', 'woocommerce' ), wc_get_order_status_name( $order->get_status() ) ), 'error' );

View File

@ -1,8 +1,8 @@
<?php
/**
* Checkout Order Pay Template
* Checkout Order Receipt Template
*
* This template can be overridden by copying it to yourtheme/woocommerce/checkout/order-pay.php.
* This template can be overridden by copying it to yourtheme/woocommerce/checkout/order-receipt.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