Just finished setup of the cart Contact Us module.
A drop-down menu for message "Subjects" would be nice.
Just finished setup of the cart Contact Us module.
A drop-down menu for message "Subjects" would be nice.
We may add an option for that in the future. When it comes to this module and others, there are almost unlimited features you can envision. This was one I had considered, but at some point I had to stop coding and put it out. There were so many other things I could add to this, including an option to do this which will probably come in the future. For now, try this (keep in mind I did not test this):
- Put a copy of squirrelcart/modules/contact/templates/contact_form.tpl.php into your custom theme folder
- Find this:
PHP Code:<input id="Subject" class="<?php print $Subject_Class ?>" type="text" name="contact[Subject]" value="<?php print $contact['Subject'] ?>" />- Change to:
PHP Code:<select id="Subject" class="<?php print $Subject_Class ?>" name="contact[Subject]">
<option value=""></option>
<option <?php if ($contact['Subject'] == 'Question about a product') print 'selected="selected"' ?>>Question about a product</option>
<option <?php if ($contact['Subject'] == 'Returns') print 'selected="selected"' ?>>Returns</option>
<option <?php if ($contact['Subject'] == 'General Inquiry') print 'selected="selected"' ?>>General Inquiry</option>
</select>- Save the file
Thanks,
Jamie
PHP shopping cart software - Squirrelcart
Please rate or review us!![]()
Hotscripts ● PHP Resource Index
There are currently 1 users browsing this thread. (0 members and 1 guests)