From a707ab2fd0073a4a5b11cab9d8e5ecceb87e7057 Mon Sep 17 00:00:00 2001 From: Nathan Coad Date: Tue, 29 Aug 2017 22:19:47 +1000 Subject: [PATCH] add more info about discounted payment rates --- booking.regn_form.inc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/booking.regn_form.inc b/booking.regn_form.inc index 0d2b1f8..5074eb2 100644 --- a/booking.regn_form.inc +++ b/booking.regn_form.inc @@ -100,7 +100,8 @@ function booking_form($node, &$form_state, $inserting = FALSE, $early_access_all foreach ($result as $row) { $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 --------- @@ -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; } + $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( '#type' => 'select', '#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'), - '#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...