Hello! First off, I'm completely new to PHP and especially Zen Cart. The client wanted me to help fix a badly customized site, and I'm stuck at this.
I need to make a drop-down menu with subject selections (e.g., Orders Inquiry, Product Info Request, etc.), that will insert into into the subject line of the email.
From digging through the forum, I found the solution separately only each of the tasks (1. how to set up a drop-down menu -- kinda; 2. how to insert subject line through a text input box). I don't know how to combine them together
I added: ENTRY_DESCRIPTION and changed EMAIL_SUBJECT in contact_us.php:
I found out about zen_draw_pull_down_menu and I tried to use it but I have no clue how to...PHP Code:define('EMAIL_SUBJECT', 'JHL Style:' .$description);
define('ENTRY_DESCRIPTION', 'Subject:');
These are the options I want to add to the list:PHP Code:<label class="inputLabel" for="subject"><?php echo ENTRY_DESCRIPTION; ?></label><br class="clearBoth" />
<?php echo zen_draw_pull_down_menu('description', ($error ? $_POST['name'] : $description), ' size="50"'); ?>
Thank you in advance for any insight!HTML Code:<select name="description"> <option value="Order Inquiries">Order Inquiries</option> <option value="Returns & Exchanges">Returns & Exchanges</option> <option value="Product Questions">Product Questions</option> <option value="Find Your Essence">Find Your Essence</option> <option value="Other Inquiries">Other</option> </select>
Here's the link to the form. It's so messy.



Reply With Quote
