add more info about discounted payment rates
This commit is contained in:
@@ -100,7 +100,8 @@ function booking_form($node, &$form_state, $inserting = FALSE, $early_access_all
|
|||||||
|
|
||||||
foreach ($result as $row) {
|
foreach ($result as $row) {
|
||||||
$price = $select_early == TRUE ? $row->booking_price : $row->booking_late_price;
|
$price = $select_early == TRUE ? $row->booking_price : $row->booking_late_price;
|
||||||
$payment_type_options[$row->pid] = $row->booking_price_descrip . ' ($' . $price . ')';
|
$discount_suffix = $select_early == TRUE ? " - discounted rate" : "";
|
||||||
|
$payment_type_options[$row->pid] = $row->booking_price_descrip . ' ($' . $price . ')' . $discount_suffix;
|
||||||
}
|
}
|
||||||
|
|
||||||
// ------- form starts here ---------
|
// ------- form starts here ---------
|
||||||
@@ -195,11 +196,14 @@ function booking_form($node, &$form_state, $inserting = FALSE, $early_access_all
|
|||||||
$form['your-details']['booking_dob']['#date_year_range'] = $date_year_range;
|
$form['your-details']['booking_dob']['#date_year_range'] = $date_year_range;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$early_description_text = t("Please note that this is the discounted payment rate. Fore more information about payment rates, please see !theweek",
|
||||||
|
array('!theweek' => l('The Week page', 'the-week/whats-happening')));
|
||||||
$form['your-details']['booking_payment_id'] = array(
|
$form['your-details']['booking_payment_id'] = array(
|
||||||
'#type' => 'select',
|
'#type' => 'select',
|
||||||
'#title' => t('Choose your payment type'),
|
'#title' => t('Choose your payment type'),
|
||||||
|
'#description' => $select_early == TRUE ? $early_description_text : "",
|
||||||
'#default_value' => $inserting != TRUE ? $data->booking_payment_id : variable_get('booking_payment_id', 'worker'),
|
'#default_value' => $inserting != TRUE ? $data->booking_payment_id : variable_get('booking_payment_id', 'worker'),
|
||||||
'#options' => $payment_type_options
|
'#options' => $payment_type_options,
|
||||||
);
|
);
|
||||||
|
|
||||||
// The status field should not be visible unless this registration is being updated...i.e. not at actual registration time...
|
// The status field should not be visible unless this registration is being updated...i.e. not at actual registration time...
|
||||||
|
Reference in New Issue
Block a user