Exchange Theme API: cart (has-cart-items)

From IThemes Codex
Revision as of 13:39, July 31, 2013 by Kopepasah (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
it_exchange( 'product', 'has-cart-items' )
	
Parameters
	string - $context the context or context.tag combination, if context.tag is used, the tag parameter can be omitted.
	string - $tag the tag, can be hyphenated or not.

Returns
	Boolean if the cart has items or not.

Description

Used to check if the cart has items or not.

Options

None.

Examples

<?php if ( it_exchange( 'cart', 'has-cart-items' ) ) : ?>
	...
<?php endif; ?>

Usage

Personal tools
Namespaces
Variants
Actions
iThemes Codex
Codex Navigation
Toolbox