Exchange Theme API: cart (update)

From IThemes Codex
Revision as of 12:08, August 1, 2013 by Kopepasah (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
it_exchange( 'cart', 'update', 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 update cart button.

Description

Used to output the button for updating the cart.

Options

'format' - Used to sets the format of the output.
	$default: button
	$options: button, text
'class' - Used to set the class of the field.
	$default: 'it-exchange-update-cart'
	$options: Any valid class name.
'label' - Used to set the label of the button.
	$default: 'Update Cart'
	$options: Any valid text.
'before' - Used to output content before the update button.
	$default: empty
	$options: Any valid html.
'after' - Used to output content after the update button.
	$default: empty
	$options: Any valid html.
'return' - Used to return (instead of echo) the output.
	$default: false
	$options: true, false

Usage

<?php it_exchange( 'cart', 'update' ) ); ?>

Examples

Personal tools
Namespaces
Variants
Actions
iThemes Codex
Codex Navigation
Toolbox