Hi David,
I have a form with a fixed price product (it's a registration fee). In the admin area I add it as a Product of type Single Product. I disable the Quantity and enter the Price as 0.50. When I click outside of the Price box the price is automatically reformatted to include the currency - i.e. 0,50€.
When I run the validation script I use the following code.
$form = $validation_result["form"];
foreach($form['fields'] as &$field){
var_dump($field);
}
In the output for this field the only place I can find the figure 0.50 is
["basePrice"]=>
string(8) "0,50 €"
But this is as a string, not a number.
Best Regards.
Michael
Posted 11 years ago on Friday May 3, 2013 |
Permalink