<?php
/**
 * This is the default template part for the
 * coupons loop in the content-checkout
 * template part.
 *
 * 
 * @version 1.1.0
 * @package IT_Exchange
 *
 * WARNING: Do not edit this file directly. To use
 * this template in a theme, copy over this file
 * to the exchange/content-checkout/loops/ directory
 * located in your theme.
*/
?>

<?php do_action( 'ninja_shop_content_checkout_before_coupons' ); ?>
<div id="ninja-shop-cart-coupons" class="ninja-shop-table">
<?php do_action( 'ninja_shop_content_checkout_before_coupons_loop' ); ?>
<?php while ( it_exchange( 'coupons', 'applied', array( 'type' => 'cart' ) ) ) : ?>
	<?php do_action( 'ninja_shop_content_checkout_begin_coupons_loop' ); ?>
	<div class="ninja-shop-table-row">
		<?php foreach ( it_exchange_get_template_part_elements( 'content_checkout', 'coupons', array( 'coupon-code', 'coupon-discount' ) ) as $coupon_detail ) : ?>
			<?php
			/**
			 * Theme and add-on devs should add code to this loop by
			 * hooking into it_exchange_get_template_part_elements filter
			 * and adding the appropriate template file to their theme or add-on
			*/
			it_exchange_get_template_part( 'content-checkout/elements/' . $coupon_detail );
			?>
		<?php endforeach; ?>
	</div>
	<?php do_action( 'ninja_shop_content_checkout_end_coupons_loop' ); ?>
<?php endwhile; ?>
<?php do_action( 'ninja_shop_content_checkout_after_coupons_loop' ); ?>
</div>
<?php do_action( 'ninja_shop_content_checkout_after_coupons' ); ?>
