[Resolved] [Plugin: Events Manager] Added drop-down to booking form-how to get value into email
(I’ve been using WordPress for years and there’s ALWAYS stuff that I get totally, totally stuck on!)
I’ve added a ‘select a location’ drop-down to the event booking form (edited templates/forms/bookingform/booking-fields.php) and simply want whatever is selected to come through in the booking email.
This is what I’ve done…
Added the drop-down ‘Select a location’ to the booking form:
<label for=’Select a location’><?php _e(‘Select a location’, ‘dbem’) ?></label>
<select name=”select”><?php echo !empty($_POST[‘select_location’]) ? $_POST[‘select_location’]:” ?>
<option value=”Le Dorat”>Le Dorat</option>
<option value=”St Leger Magnezeix”>St Leger Magnezeix</option>
Added this to em-booking.php:
$replace = $this->select_location;
Then added #_SELECTLOCATION to my email template in WP admin.
I’ve no idea what I’m doing but I can usually muddle through. I did read the docs but I don’t think I understood them. So this time, as I said at the top, I’m stuck!
- The topic ‘[Resolved] [Plugin: Events Manager] Added drop-down to booking form-how to get value into email’ is closed to new replies.