Zen Cart Logo
Forums / General Questions / Adding a subject line to the contact us form

Adding a subject line to the contact us form

Locked

Views: 1,766

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
24 Jun 2007, 2:42 AM
#1
bubblegumgoods avatar

bubblegumgoods

Zen Follower

Join Date:
Jan 2006
Posts:
103
Plugin Contributions:
0

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.

24 Jun 2007, 3:38 AM
#2
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,608
Plugin Contributions:
0

Re: Adding a subject line to the contact us form

Perhaps post the code changes you have made?

24 Jun 2007, 4:00 AM
#3
bubblegumgoods avatar

bubblegumgoods

Zen Follower

Join Date:
Jan 2006
Posts:
103
Plugin Contributions:
0

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:

MichellyAqua12:

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

>  
> Replace with this:
>  
> ```
// 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" .