Changed template name to receipt
This commit is contained in:
parent
8f6dc9588c
commit
f93413920b
|
@ -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' );
|
||||
|
|
|
@ -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
|
Loading…
Reference in New Issue