Exchange Theme API: transaction (total)

From IThemes Codex
Revision as of 16:14, August 5, 2013 by Kopepasah (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
it_exchange( 'transaction', 'total', array( 'option' => 'value' ) )
	
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. Prefix with 'get' as shorthand for the array( 'return' => 'true' ) option.
	mixed  - $options associative array.
Returns
	The transaction total.

Description

Used to get the transaction total.

Options

'before' - Used to output html before the status.
	$default: empty
	$options: Any valid html.
'after' - Used to output html after the status.
	$default: empty
	$options: Any valid html.
'format_currency' - Used to format the currency total.
	$default: true
	$options: true, false
'return' - Used to return (instead of echo) the output.
	$default: false
	$options: true, false

Usage

<?php it_exchange( 'transaction', 'total' ); ?>
Personal tools
Namespaces
Variants
Actions
iThemes Codex
Codex Navigation
Toolbox