Functions:orderPayTypeOptions

From Whirlwind eCommerce Wiki
Revision as of 12:46, 23 October 2008 by 71.163.185.8 (Talk) (New page: {{Page Template Functions Shortcuts}} == Description == Retrieves string of pay type options to be used in a <SELECT> tag. Typically used in the payment checkout template. == Syntax...)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Page Template Managers

Page Template Functions

Description

Retrieves string of pay type options to be used in a <SELECT> tag. Typically used in the payment checkout template.

Syntax

$string = eV::orderPayTypeOptions($payType=NULL);

Paramaters

  • payType STR OPTIONAL
The pay type to be pre selected. Use the 2- character pay type representation (VI,AX...)

Return Values

String of option tags to be placed inside a <SELECT> tag.

Examples

// set a pre selected pay type
$payType = "MC";
 
// get the option tags
$payTypeOptions = eV::orderPayTypeOptions($payType);
 
// output the results in a form
echo "<form action=\"index.php\" method=\"post\">";
echo "<select name=\"payType\">" . $payTypeOptions . "</select>";
echo "<input type=\"submit\" value=\"go!\">
echo "</form>";