Results 1 to 3 of 3
  1. #1
    Join Date
    Jan 2006
    Posts
    128
    Plugin Contributions
    0

    Default Adding a subject line to the contact us form

    Hello,

    I've been reading through some of the past entries on how to do this, and I have tried to go along with the tips that were in the post. But when I saved the file and went to the contact us section of my site, this is what shows up.

    Parse error: syntax error, unexpected '&' in /home/sunidra/public_html/includes/modules/pages/contact_us/header_php.php on line 50

    Could anybody help me figure out the problem?

    This is the thread that I got the directions from:
    http://www.zen-cart.com/forum/showthread.php?t=42015

    Post #7

    Thanks so much.

  2. #2
    Join Date
    Jun 2003
    Posts
    33,715
    Plugin Contributions
    0

    Default Re: Adding a subject line to the contact us form

    Perhaps post the code changes you have made?
    Please do not PM for support issues: a private solution doesn't benefit the community.

    Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

  3. #3
    Join Date
    Jan 2006
    Posts
    128
    Plugin Contributions
    0

    Default Re: Adding a subject line to the contact us form

    This is the code changes I made:

    Then go to includes/modules/pages/contact_us/header_php.php. Go to line 50 or so and find this:

    Quote Originally Posted by MichellyAqua12 View Post
    Code:
    // Prepare Text-only portion of message
        $text_message = OFFICE_FROM . "\t" . $name . "\n" .
        OFFICE_EMAIL . "\t" . $email_address . "\n\n" .
    Replace with this:

    Code:
    // Prepare Text-only portion of message
        $text_message = OFFICE_FROM . "\t" . $name . "\n" .
        OFFICE_EMAIL . "\t" . $email_address . "\n" .
        OFFICE_SUBJECT . "\t" . $subject . "\n\n" .

 

 

Similar Threads

  1. v139h Drop-down menu for email subject line in contact form
    By lastmiracle in forum General Questions
    Replies: 5
    Last Post: 28 Feb 2012, 08:12 PM
  2. v150 Change Contact Us Form Subject?
    By pmurray in forum All Other Contributions/Addons
    Replies: 6
    Last Post: 22 Jan 2012, 10:51 PM
  3. Replies: 1
    Last Post: 8 Mar 2011, 01:36 AM
  4. Customer Specified Subject Line for Contact Form
    By jacdesigner in forum Basic Configuration
    Replies: 18
    Last Post: 31 Oct 2007, 11:01 AM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR