Exchange Theme API: transaction (product-attribute)

From IThemes Codex
Jump to: navigation, search
it_exchange( 'transaction', 'product-attribute', 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
	A product attribute.

Description

Used to display an attribute of a product in the transactions loop.

Options

'wrap' - Wrap the attribute with an html element.
	$default: false
	$options: Any valid html attribute.
'format' - Used to set the format of the attribute.
	$default: 'html'
	$options: html, text
'attribute' - Used to set which attribute to retrieve.
	$default: false
	$options: Any product attribute (title, count, description, et cetera).
'format_price' - Used to format the price when returning the price attribute.
	$default: true
	$options: true, false
'return' - Used to return (instead of echo) the output.
	$default: false
	$options: true, false

Usage

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