Exchange Theme API: cart-item (quantity)

From IThemes Codex
Jump to: navigation, search
it_exchange( 'cart-item', 'quantity', 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.
	mixed  - $options associative array, or url-style name=value pairs separated by ampersands (&).
Returns
	The the quantity element.

Description

Used to output the quantity text input (cart) or value (checkout).

Options

'format' - Used to change the format of the output.
	$default: 'text-field'
	$options: text-field, var_key, var_value
'before' - Used to add output before the element (requires format to be text-field).
	$default: empty
	$options: Any valid html.
'after' - Used to add output after the element (requires format to be text-field).
	$default: empty
	$options: Any valid html.
'class' - Used to change the class name (requires format to be text-field).
	$default: 'product-cart-quantity'
	$options: Any valid class name.
'return' - Used to return (instead of echo) the output.
	$default: false
	$options: true, false

Usage

<?php it_exchange( 'cart-item', 'quantity' ); ?>
Personal tools
Namespaces
Variants
Actions
iThemes Codex
Codex Navigation
Toolbox