Hello, I have the following bit of php code:
When I debug, the return and var are both set to the correct amount, like 12.98, but the field its supposed to go to appears empty still.
I have a 'total' field reloaded on a "price" event upon choosing a reservation time. The total field has value of {var:php15} which happens to be php code.
Any ideas?
$res_amount =& $form->data['res_amount'];
$time_res =& $form->data['time_amount'];
$total_price = 0;
$total_price = $res_amount + $time_res;
return $total_price;
When I debug, the return and var are both set to the correct amount, like 12.98, but the field its supposed to go to appears empty still.
I have a 'total' field reloaded on a "price" event upon choosing a reservation time. The total field has value of {var:php15} which happens to be php code.
Any ideas?