Exchange Theme Templates: content-checkout.php

From IThemes Codex
Jump to: navigation, search

Default template part for the checkout page.

Contents

Theme Location

theme/exchange/content-checkout.php

Action Hooks

Theme API

Currently no api calls for this file.

Default Code

<?php
/**
 * Default template part for the checkout page.
 * 
 * @since 0.4.0
 * @version 1.0.0
 * @link http://ithemes.com/codex/page/Exchange_Template_Updates* @updated 1.0.0
 * @package IT_Exchange
 * 
 * WARNING: Do not edit this file directly. To use
 * this template in a theme, simply copy over this
 * file's content to the exchange/ directory located
 * in your theme.
*/
?>

<?php do_action( 'it_exchange_content_checkout_before_wrap' ); ?>
<div id="it-exchange-cart" class="it-exchange-wrap it-exchange-checkout">
	<?php do_action( 'it_exchange_content_checkout_begin_wrap' ); ?>
	
	<?php it_exchange_get_template_part( 'messages' ); ?>
	
	<?php if ( it_exchange( 'cart', 'has-cart-items' ) ) :  ?>
    
		<?php it_exchange_get_template_part( 'content-checkout/loops/items' ); ?>
		<?php it_exchange_get_template_part( 'content-checkout/loops/coupons' ); ?>
		<?php it_exchange_get_template_part( 'content-checkout/loops/totals' ); ?>
		<?php it_exchange_get_template_part( 'content-checkout/loops/actions' ); ?>
		
	<?php else : ?>
		<?php do_action( 'it_exchange_content_cart_start_empty_cart' ); ?>
			<p><?php _e( 'There are no items in your cart', 'LION' ); ?></p>
		<?php do_action( 'it_exchange_content_cart_end_empty_cart' ); ?>
	<?php endif; ?>
	<?php do_action( 'it_exchange_content_cart_end_wrap' ); ?>
</div>
<?php do_action( 'it_exchange_content_cart_after_wrap' ); ?>

← Back to Exchange Theme Templates Page

Personal tools
Namespaces
Variants
Actions
iThemes Codex
Codex Navigation
Toolbox