Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Trying to make a Contact US Duplicate


superman123

Recommended Posts

Posted

I'm trying to duplicate the "Contact us" php file but i wish to add more lines and have the submit button goto another address than the one in the configuration. I kinda of figured out how to make new lines but what is most important is how i can have the submit button have it sent another email address other than the one in the config.

Posted

Look for contactus in the contribs section. There's on that modifies your contact us page to have a dropdown box/radio buttons to select which department the email goes to. On the admin side you can configure a department with a specific email address.

 

I dunno if that is what you are looking for, but I'd think that would be better than two contact us pages...

 

See it here: http://www.nabcomdiamonds.com/catalog/contact_us.php

 

I also added some information on that page...

9 times out of 10 its a PEBCAK Error (Problem exists between chair and keyboard)

 

Replace that and you're fine...

  • 2 weeks later...
Posted

Thanks, nrlatsha.

 

I've installed one of contact_us contributions and now I have a drop down menu option. However, the problem is when I got an email from customers, its subject said "Customer Web Message for Your Store" and "Guest Web Message for Your Sotre" for guests. How do I change this?

 

In addition, I'd like to know how to add subject box underneath the email address box. Which php files should I modify?

  • 2 weeks later...
Posted
Thanks, nrlatsha.

 

I've installed one of contact_us contributions and now I have a drop down menu option. However, the problem is when I got an email from customers, its subject said "Customer Web Message for Your Store" and "Guest Web Message for Your Sotre" for guests. How do I change this?

 

In addition, I'd like to know how to add subject box underneath the email address box. Which php files should I modify?

You can change that via catalog/includes/languages/english/contact_us.php.

 

But if you want a subject line in there also, do this:

 

catalog/contact_us.php

 

FIND:

$email_address = tep_db_prepare_input($HTTP_POST_VARS['email']);

 

Under it add:

$email_subject = tep_db_prepare_input($HTTP_POST_VARS['subject']);

 

FIND and replace all:

EMAIL_SUBJECT

With:

$email_subject

 

FIND:

<tr>
               <td class="main"><?php echo ENTRY_EMAIL; ?></td>
             </tr>
             <tr>
               <td class="main"><?php echo tep_draw_input_field('email', $customers_email); ?></td>
             </tr>

 

UNDER that add:

<tr>
               <td class="main"><?php echo ENTRY_EMAIL_SUBJECT; ?></td>
             </tr>
             <tr>
               <td class="main"><?php echo tep_draw_input_field('subject', $email_subject); ?></td>
             </tr>

 

Open catalog/includes/languages/english/contact_us.php and add:

 

define('ENTRY_EMAIL_SUBJECT', 'Subject:');

 

And that should be it, send your self a test email to verify...

 

HTH

Noel

9 times out of 10 its a PEBCAK Error (Problem exists between chair and keyboard)

 

Replace that and you're fine...

  • 6 months later...
Posted
But if you want a subject line in there also, do this:

 

You should make this a contrib. It took me a while to find this solution to insert a subject field. Quite a few other people have been asking about it too without receiving a reply.

 

phil

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...