Exchange Theme Templates: content-cart/elements/totals-savings.php

From IThemes Codex
Jump to: navigation, search

This is the default template for the Savings element in the totals loop of the content-cart template part.

Contents

Theme Location

theme/exchange/content-cart/elements/totals-savings.php

Action Hooks

Theme API

Default Code

<?php
/**
 * This is the default template for the Savings
 * element in the totals loop of the content-cart
 * template part.
 *
 * @since 1.1.0
 * @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-cart/elements/
 * directory located in your theme.
*/
?>

<?php do_action( 'it_exchange_content_cart_before_totals_savings_element' ); ?>
<?php if ( it_exchange( 'coupons', 'supported', 'type=cart' ) && it_exchange( 'coupons', 'has-applied', 'type=cart' ) ) : ?>
	<div class="it-exchange-cart-totals-title it-exchange-table-column">
		<?php do_action( 'it_exchange_content_cart_begin_totals_savings_element_label' ); ?>
		<div class="it-exchange-table-column-inner">
			<?php _e( 'Savings', 'LION' ); ?>
		</div>
		<?php do_action( 'it_exchange_content_cart_end_totals_savings_element_label' ); ?>
	</div>
	<div class="it-exchange-cart-totals-amount it-exchange-table-column">
		<?php do_action( 'it_exchange_content_cart_begin_totals_savings_element_value' ); ?>
		<div class="it-exchange-table-column-inner">
			<?php it_exchange( 'coupons', 'total-discount', array( 'type' => 'cart' ) ); ?>
		</div>
		<?php do_action( 'it_exchange_content_cart_end_totals_savings_element_value' ); ?>
	</div>
<?php endif; ?>
<?php do_action( 'it_exchange_content_cart_after_totals_savings_element' ); ?>

← Back to Exchange Theme Templates Page

Personal tools
Namespaces
Variants
Actions
iThemes Codex
Codex Navigation
Toolbox