Difference between revisions of "Functions:orderPayTypeOptions"
From Whirlwind eCommerce Wiki
(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...) |
(No difference)
|
Latest revision as of 12:46, 23 October 2008
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>";