Page 2 of 2 FirstFirst 12
Results 11 to 12 of 12
  1. #11
    Join Date
    Feb 2007
    Location
    Sacramento, CA
    Posts
    64
    Plugin Contributions
    1

    Default Re: dropdown menu on contact page

    Yeah, if you could PM the code to me, or post it on the boards here for other people to see as well, then that would be great. From what I understand, your code calls the ENTRY_ORDER_STATUS and ENTRY_ORDER_CHANGE variables, among others. This other code you're talking about is how and where those variables are defined, right?

    Thanks a lot for your help,

    Luke

  2. #12
    Join Date
    Feb 2007
    Location
    San Francisco, CA
    Posts
    16
    Plugin Contributions
    0

    Default Re: dropdown menu on contact page

    Sorry this took so long, here is what I did ( this is for a form to contact about retail orders so change for what you need as needed)

    In the file /includes/languages/english/YOUR_STORE/contact_retail.php
    Code:
    define('ENTRY_ORDER_CHANGE', 'I Need to Change My Order');
    define('ENTRY_WEBSITE', 'Website Problems');
    define('ENTRY_SHOPPING_CART', 'Shopping Cart Problems');
    define('ENTRY_OTHER', 'Other');
    contact_retail.php is what I called my file, change as needed.

    then in the file /includes/templates/YOUR_STORE/templates/tpl_contact_retail_default.php
    Code:
    <label class="inputLabel" for="inquiry_area"><?php echo ENTRY_INQUIRY_DROPDOWN; ?></label>
    <?php echo  "<select name=\"inquiry_area\">" . '<option value="order status">' . ENTRY_ORDER_STATUS . '</option>' . '<option value="change order">' . ENTRY_ORDER_CHANGE . '</option>' . '<option value="website problems">' . ENTRY_WEBSITE . '</option>' . '<option value="shopping cart problems">' . ENTRY_SHOPPING_CART . '</option>' . '<option value="other">' . ENTRY_OTHER . '</option>' . "</select>";?>
    <br class="clearBoth" />
    Where the code corresponds to the name in the contact_retail.php and the option value is for the header so the email will look correct when sent to whoever is receiving it.

    Finally, in the file /includes/modules/pages/contact_retail/header.php
    Code:
    "Area of Inquiry:\t\t" . strip_tags($_POST['inquiry_area']) . "\n" .
    This way it sends correctly.

 

 
Page 2 of 2 FirstFirst 12

Similar Threads

  1. v155 Contact us dropdown menu not working properly
    By spminis in forum Basic Configuration
    Replies: 16
    Last Post: 20 Aug 2016, 10:34 PM
  2. v150 No dropdown on contact us page?
    By SquareDorito in forum Basic Configuration
    Replies: 2
    Last Post: 8 Mar 2013, 12:56 AM
  3. v150 Adding ez-page links to a dropdown menu
    By lEWISm in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 28 Aug 2012, 11:25 PM
  4. How can I add a Country dropdown to my contact-us page?
    By dw08gm in forum General Questions
    Replies: 0
    Last Post: 18 Oct 2009, 06:33 PM
  5. Header Dropdown Menu (CSS) Without the Dropdown???
    By hcd888 in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 27 May 2009, 01:20 AM

Posting Permissions

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