Exchange Theme API: product (base-price)

From IThemes Codex
Jump to: navigation, search
it_exchange( 'product', 'base-price', 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 return=true option.
	mixed  - $options associative array, or url-style name=value pairs separated by ampersands (&).

Returns
	The product base price.

Description

Used to display the price for the product.

Options

'format' - Used to display the output in and html format.
	$default: 'html'
	$options: text, html
'before' - Used to display content before the output.
	$default: '<span class="it-exchange-base-price">'
	$options: Any valid html.
'after' - Used to display content after the output.
	$default: '</span>'
	$options: Any valid html.
'return' - Used to return (instead of echo) the output.
	$default: false
	$options: true, false

Usage

<?php it_exchange( 'product', 'base-price' ); ?>

Examples

Personal tools
Namespaces
Variants
Actions
iThemes Codex
Codex Navigation
Toolbox