Exchange/IT Theme API Product/purchase options

From IThemes Codex
Jump to: navigation, search

Description

Returns the buy now or add_to_cart form. Or both.


Options:

- buy-now-before: Gets added before the buy-now form

- buy-now-after: Gets added after the buy-now form

- buy-now-class: A CSS class applied to the buy-now button

- buy-now-label: The HTML value of the buy now button.

- buy-now-button-type: The button-type: submit or button. Default is submit

- buy-now-button-name: The default is false. No name attribute is provided when false

- add-to-cart-before: Gets added before the buy-now form

- add-to-cart-after: Gets added after the buy-now form

- add-to-cart-class: A CSS class applied to the buy-now button

- add-to-cart-label: The HTML value of the buy now button.

- add-to-cart-button-type: The button-type: submit or button. Default is submit

- add-to-cart-button-name: The default is false. No name attribute is provided when false

History

Since 0.4.0

Parameters

<?php IT_Theme_API_Product::purchase_options( $options=array() ); ?>

Returns

string

Personal tools
Namespaces
Variants
Actions
iThemes Codex
Codex Navigation
Toolbox