+ Reply to Thread
Results 1 to 2 of 2

Thread: Contact Module

  1. #1
    Client pdunton's Avatar
    Join Date
    Apr 2006
    Location
    Tucson, Arizona
    Posts
    557
    Squirrelcart version
    v3.4.1

    Cool Contact Module

    Just finished setup of the cart Contact Us module.
    A drop-down menu for message "Subjects" would be nice.

  2. #2
    Squirrelcart Staff Jamie's Avatar
    Join Date
    May 2002
    Posts
    6,829
    Squirrelcart version
    v3.3.7
    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):

    1. Put a copy of squirrelcart/modules/contact/templates/contact_form.tpl.php into your custom theme folder
    2. Find this:
      PHP Code:
      <input id="Subject" class="<?php print $Subject_Class ?>" type="text" name="contact[Subject]" value="<?php print $contact['Subject'?>" />
    3. 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>
    4. Save the file

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts