Only output wrappers on order-review when not loaded via ajax

This commit is contained in:
Mike Jolley 2014-04-30 11:20:19 +01:00
parent a042bd00dd
commit ec5cb0cffa
1 changed files with 4 additions and 4 deletions

View File

@ -4,13 +4,13 @@
*
* @author WooThemes
* @package WooCommerce/Templates
* @version 2.1.0
* @version 2.1.8
*/
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
?>
<div id="order_review">
<?php if ( ! is_ajax() ) : ?><div id="order_review"><?php endif; ?>
<table class="shop_table">
<thead>
@ -191,4 +191,4 @@ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
<?php do_action( 'woocommerce_review_order_after_payment' ); ?>
</div>
<?php if ( ! is_ajax() ) : ?></div><?php endif; ?>