diff --git a/includes/class-wc-ajax.php b/includes/class-wc-ajax.php index 421cd535d6b..5820f181aa7 100644 --- a/includes/class-wc-ajax.php +++ b/includes/class-wc-ajax.php @@ -256,7 +256,7 @@ class WC_AJAX { WC()->cart->calculate_totals(); - do_action( 'woocommerce_checkout_order_review' ); // Display review order table + do_action( 'woocommerce_checkout_order_review', true ); // Display review order table die(); } diff --git a/includes/wc-template-functions.php b/includes/wc-template-functions.php index 84e08a7b7b2..02a1bbab00d 100644 --- a/includes/wc-template-functions.php +++ b/includes/wc-template-functions.php @@ -1296,8 +1296,8 @@ if ( ! function_exists( 'woocommerce_order_review' ) ) { * @subpackage Checkout * @return void */ - function woocommerce_order_review() { - wc_get_template( 'checkout/review-order.php', array( 'checkout' => WC()->checkout() ) ); + function woocommerce_order_review( $is_ajax = false ) { + wc_get_template( 'checkout/review-order.php', array( 'checkout' => WC()->checkout(), 'is_ajax' => $is_ajax ) ); } } diff --git a/templates/checkout/review-order.php b/templates/checkout/review-order.php index 3c093475a08..37f8b98c757 100644 --- a/templates/checkout/review-order.php +++ b/templates/checkout/review-order.php @@ -10,7 +10,7 @@ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly ?> -