Jump to content
John-Peter

Super Contact us enhancement 1.0

Recommended Posts

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, support@supportwebsite.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.

 

More information about this error may be available in the server error log.

 

 

 

--------------------------------------------------------------------------------

 

Apache/1.3.33 Server at www.**********.com Port 80

 

 

please help.

I have the same problem. have installed successfully. tried offline at my pc, everythingis fine.

but as I tried it online im Webserver, I have the same error (500 internal error), altough the message sent, and I receive the message directly.

only it doesn"t show the succes message.

in the contact_us.php were two lines with this "if (isset($HTTP_GET_VARS['action']) && ($HTTP_GET_VARS['action'] == 'send')) {"

if I change the first one to default (if (isset($HTTP_GET_VARS['action']) && ($HTTP_GET_VARS['action'] == 'success')) {), it shows the message sent successfully but it doesn't.

 

please help. my shop is almost finish, i appreciate it. sorry for bad english

here ist my code:

<?php
/*
 $Id: contact_us.php 1739 2007-12-20 00:52:16Z hpdl $

 osCommerce, Open Source E-Commerce Solutions
 [url="http://www.oscommerce.com"]http://www.oscommerce.com[/url]

 Copyright © 2003 osCommerce

 Released under the GNU General Public License
*/

 require('includes/application_top.php');

 require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_CONTACT_US);

 $error = false;
 if (isset($HTTP_GET_VARS['action']) && ($HTTP_GET_VARS['action'] == 'send')) {
   $name = tep_db_prepare_input($HTTP_POST_VARS['name']);
   $email_address = tep_db_prepare_input($HTTP_POST_VARS['email']);
   // BOF Super Contact us enhancement 1.41
$order_id = tep_db_prepare_input($HTTP_POST_VARS['order_id']);
if ($order_id <> NULL){
   		$enquiry = 'Order ID: ' . $order_id . "\n\n" . tep_db_prepare_input($HTTP_POST_VARS['enquiry']);
}else{
	$enquiry = tep_db_prepare_input($HTTP_POST_VARS['enquiry']);
}

$emailsubject = tep_db_prepare_input($HTTP_POST_VARS['reason']) . ' ' . EMAIL_SUBJECT;
   if (tep_validate_email($email_address)) {
       tep_mail(STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS, $emailsubject, $enquiry, $name, $email_address);
if (CONTACT_US_LIST !=''){
	$send_to_array=explode("," ,CONTACT_US_LIST);
	preg_match('/\<[^>]+\>/', $send_to_array[$send_to], $send_email_array);
	$send_to_email= eregi_replace (">", "", $send_email_array[0]);
	$send_to_email= eregi_replace ("<", "", $send_to_email);

	tep_mail(preg_replace('/\<[^*]*/', '', $send_to_array[$send_to]), $send_to_email, $emailsubject, $enquiry, $name, $email_address);
}else{
  //tep_redirect(tep_href_link(FILENAME_CONTACT_US, 'action=success'));
     tep_redirect(tep_href_link(FILENAME_CONTACT_US, 'action=send'));
}
// EOF Super Contact us enhancement 1.41
   } else {
     $error = true;

     $messageStack->add('contact', ENTRY_EMAIL_ADDRESS_CHECK_ERROR);
   }
 }

 $breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_CONTACT_US));
?>
<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">
<html <?php echo HTML_PARAMS; ?>>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>">
<title><?php echo TITLE; ?></title>
<base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>">
<link rel="stylesheet" type="text/css" href="stylesheet.css">
</head>
<body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0">
<!-- header //-->
<?php require(DIR_WS_INCLUDES . 'header.php'); ?>
<!-- header_eof //-->

<!-- body //-->
<table border="0" width="100%" cellspacing="3" cellpadding="3">
 <tr>
   <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2">
<!-- left_navigation //-->
<?php require(DIR_WS_INCLUDES . 'column_left.php'); ?>
<!-- left_navigation_eof //-->
   </table></td>
<!-- body_text //-->
   <td width="100%" valign="top"><?php echo tep_draw_form('contact_us', tep_href_link(FILENAME_CONTACT_US, 'action=send')); ?><table border="0" width="100%" cellspacing="0" cellpadding="0">
     <tr>
       <td><table border="0" width="100%" cellspacing="0" cellpadding="0">
         <tr>
           <td class="pageHeading"><?php echo HEADING_TITLE; ?></td>
           <td class="pageHeading" align="right"><?php echo tep_image(DIR_WS_IMAGES . 'table_background_contact_us.gif', HEADING_TITLE, HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td>
         </tr>
       </table></td>
     </tr>
     <tr>
       <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
     </tr>
<?php
 if ($messageStack->size('contact') > 0) {
?>
     <tr>
       <td><?php echo $messageStack->output('contact'); ?></td>
     </tr>
     <tr>
       <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
     </tr>
<?php
 }

 if (isset($HTTP_GET_VARS['action']) && ($HTTP_GET_VARS['action'] == 'send')) {
?>
     <tr>
       <td class="main" align="center"><?php echo tep_image(DIR_WS_IMAGES . 'table_background_man_on_board.gif', HEADING_TITLE, '0', '0', 'align="left"') . TEXT_SUCCESS; ?></td>
     </tr>
     <tr>
       <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
     </tr>
     <tr>
       <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
         <tr class="infoBoxContents">
           <td><table border="0" width="100%" cellspacing="0" cellpadding="2">
             <tr>
               <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
               <td align="right"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image_button('button_continue.gif', IMAGE_BUTTON_CONTINUE) . '</a>'; ?></td>
               <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
             </tr>
           </table></td>
         </tr>
       </table></td>
     </tr>
<!-- BOF Super Contact us enhancement 1.41 //-->
<?php
 } else {
 if (tep_session_is_registered('customer_id')) {
   $account_query = tep_db_query("select customers_firstname, customers_lastname, customers_email_address from " . TABLE_CUSTOMERS . " where customers_id = '" . (int)$customer_id . "'");
   $account = tep_db_fetch_array($account_query);

   $name = $account['customers_firstname'] . ' ' . $account['customers_lastname'];
   $email = $account['customers_email_address'];
 }
?>
<tr><td>

<table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
<tr class="infoBoxContents"><td><table><tr>
        <td class="main" valign="top" width=40%><b><?php echo nl2br(STORE_NAME_ADDRESS); ?></b><br><br>
               <?php echo (OPENING_HOURS); ?><br><br></td>
               <td class="main" valign="top" width="60%"><?php echo ENTRY_NAME; ?><br>
				<?php echo tep_draw_input_field('name'); ?><br />
				<?php echo ENTRY_EMAIL; ?><br>
				<?php echo tep_draw_input_field('email'); ?><br />
				<?php echo ENTRY_ORDER_ID; ?><br>
				<?php echo tep_draw_input_field('order_id'); ?><br />
				<?php
	                                               if (CONTACT_US_LIST !=''){
				  echo SEND_TO_TEXT . '<br>';
			                  if(SEND_TO_TYPE=='radio'){
			                  foreach(explode("," ,CONTACT_US_LIST) as $k => $v) {
			               if($k==0){
				$checked=true;
				}else{
				$checked=false;
				}
				echo tep_draw_radio_field('send_to', "$k", $checked). " " .preg_replace('/\<[^*]*/', '', $v);
			              }

		                            }else{
			              foreach(explode("," ,CONTACT_US_LIST) as $k => $v) {
					$send_to_array[] = array('id' => $k, 'text' => preg_replace('/\<[^*]*/', '', $v));
				 }
       		                                           echo tep_draw_pull_down_menu('send_to',  $send_to_array);
		                             }

		                            echo('<br>');
		                            }
                                                                     ?>
                                                                   <?php echo ENTRY_REASON; ?><br>
				<select name="reason">
					<?php echo '<option value="' . REASONS1 . '">' . REASONS1 . '</option>'; ?>
					<?php echo '<option value="' . REASONS2 . '">' . REASONS2 . '</option>'; ?>
					<?php echo '<option value="' . REASONS3 . '">' . REASONS3 . '</option>'; ?>
					<?php echo '<option value="' . REASONS4 . '">' . REASONS4 . '</option>'; ?>
					<?php echo '<option value="' . REASONS5 . '">' . REASONS5 . '</option>'; ?>
					<?php echo '<option value="' . REASONS6 . '">' . REASONS6 . '</option>'; ?>

				</select><br />
				<?php echo ENTRY_ENQUIRY; ?><BR>
                   <?php echo tep_draw_textarea_field('enquiry', 'soft', 50, 15, tep_sanitize_string($_POST['enquiry']), '', false); ?>
                   <br />
                   </td></tr></table></td>
</tr>
</table>
<br />
<table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
         <tr class="infoBoxContents">
           <td><table border="0" width="100%" cellspacing="0" cellpadding="2">
             <tr>
               <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
               <td align="right"><?php echo tep_image_submit('button_send.gif', IMAGE_BUTTON_CONTINUE); ?></td>
               <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
             </tr>
           </table></td>
         </tr>
       </table></td></tr>   
<?php
 }
?>
<!-- EOF Super Contact us enhancement 1.41 //-->

   </table></form></td>
<!-- body_text_eof //-->
   <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2">
<!-- right_navigation //-->
<?php require(DIR_WS_INCLUDES . 'column_right.php'); ?>
<!-- right_navigation_eof //-->
   </table></td>
 </tr>
</table>
<!-- body_eof //-->

<!-- footer //-->
<?php require(DIR_WS_INCLUDES . 'footer.php'); ?>
<!-- footer_eof //-->
<br>
</body>
</html>
<?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>

Share this post


Link to post
Share on other sites

the problem ist this code:

// BOF Super Contact us enhancement 1.41
$order_id = tep_db_prepare_input($HTTP_POST_VARS['order_id']);
if ($order_id <> NULL){
   		$enquiry = 'Order ID: ' . $order_id . "\n\n" . tep_db_prepare_input($HTTP_POST_VARS['enquiry']);
}else{
	$enquiry = tep_db_prepare_input($HTTP_POST_VARS['enquiry']);
}

$emailsubject = tep_db_prepare_input($HTTP_POST_VARS['reason']) . ' ' . EMAIL_SUBJECT;
   if (tep_validate_email($email_address)) {
       tep_mail(STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS, $emailsubject, $enquiry, $name, $email_address);
if (CONTACT_US_LIST !=''){
	$send_to_array=explode("," ,CONTACT_US_LIST);
	preg_match('/\<[^>]+\>/', $send_to_array[$send_to], $send_email_array);
	$send_to_email= eregi_replace (">", "", $send_email_array[0]);
	$send_to_email= eregi_replace ("<", "", $send_to_email);

	tep_mail(preg_replace('/\<[^*]*/', '', $send_to_array[$send_to]), $send_to_email, $emailsubject, $enquiry, $name, $email_address);
}else{
  //tep_redirect(tep_href_link(FILENAME_CONTACT_US, 'action=success'));
     tep_redirect(tep_href_link(FILENAME_CONTACT_US, 'action=send'));
}
// EOF Super Contact us enhancement 1.41

 

so i just use the original one.

 

one more question,

 

I want that customer receive an autoresponder mail after send a message.

it should be like: "dear customer, thanks for your inquery. we will contact you asap. etc

 

anybody knows?

Share this post


Link to post
Share on other sites

i have installed the latest version (1.4) but i have a small problem.. I receive the mails 2 times.. I don't know why.. I mean when a costumer sends me an e-mail using the form, i get it 2 times.. any idea?


I am Maintaining :

Product_Short_Description (i added it on specials.php and in shopping_cart.php)

City Shipping Rates With Admin (fixed the error that was giving wrong total shipping charges)

I had Created :

UTF bug fix on standard reviews system (admin & block)

Corrupted character on mysql with utf-8

Share this post


Link to post
Share on other sites
i have installed the latest version (1.4) but i have a small problem.. I receive the mails 2 times.. I don't know why.. I mean when a costumer sends me an e-mail using the form, i get it 2 times.. any idea?

maybe you duplicated some code in the files.


The Coopco Underwear Shop

 

If you live to be 100 years of age, that means you have lived for 36,525 days. Don't waste another, there aren't many left.

Share this post


Link to post
Share on other sites

i see.. ok

anyone can tell how can i put encoding utf-8 to the messages that are sending from this form?


I am Maintaining :

Product_Short_Description (i added it on specials.php and in shopping_cart.php)

City Shipping Rates With Admin (fixed the error that was giving wrong total shipping charges)

I had Created :

UTF bug fix on standard reviews system (admin & block)

Corrupted character on mysql with utf-8

Share this post


Link to post
Share on other sites

Hey guys! I got the same problem with draculakos. Here is my code:

<?php
/*
 $Id: contact_us.php,v 1.42 2003/06/12 12:17:07 hpdl Exp $

 osCommerce, Open Source E-Commerce Solutions
 [url="http://www.oscommerce.com"]http://www.oscommerce.com[/url]

 Copyright © 2003 osCommerce

 Released under the GNU General Public License
*/

 require('includes/application_top.php');

 require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_CONTACT_US);

 $error = false;
 if (isset($HTTP_GET_VARS['action']) && ($HTTP_GET_VARS['action'] == 'send')) {
   $name = tep_db_prepare_input($HTTP_POST_VARS['name']);
   $email_address = tep_db_prepare_input($HTTP_POST_VARS['email']);
   // BOF Super Contact us enhancement 1.41
$order_id = tep_db_prepare_input($HTTP_POST_VARS['order_id']);
if ($order_id <> NULL){
   		$enquiry = 'Order ID: ' . $order_id . "\n\n" . tep_db_prepare_input($HTTP_POST_VARS['enquiry']);
}else{
	$enquiry = tep_db_prepare_input($HTTP_POST_VARS['enquiry']);
}

$emailsubject = tep_db_prepare_input($HTTP_POST_VARS['reason']) . ' ' . EMAIL_SUBJECT;
   if (tep_validate_email($email_address)) {
       tep_mail(STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS, $emailsubject, $enquiry, $name, $email_address);
if (CONTACT_US_LIST !=''){
	$send_to_array=explode("," ,CONTACT_US_LIST);
	preg_match('/\<[^>]+\>/', $send_to_array[$send_to], $send_email_array);
	$send_to_email= eregi_replace (">", "", $send_email_array[0]);
	$send_to_email= eregi_replace ("<", "", $send_to_email);

	tep_mail(preg_replace('/\<[^*]*/', '', $send_to_array[$send_to]), $send_to_email, $emailsubject, $enquiry, $name, $email_address);
}else{
  //tep_redirect(tep_href_link(FILENAME_CONTACT_US, 'action=success'));
     tep_redirect(tep_href_link(FILENAME_CONTACT_US, 'action=send'));
}
// EOF Super Contact us enhancement 1.41

   } else {
     $error = true;

     $messageStack->add('contact', ENTRY_EMAIL_ADDRESS_CHECK_ERROR);
   }
 }

 $breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_CONTACT_US));
?>
<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">
<html <?php echo HTML_PARAMS; ?>>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>">
<title><?php echo TITLE; ?></title>
<base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>">
<link rel="stylesheet" type="text/css" href="stylesheet.css">
</head>
<body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0">
<!-- header //-->
<?php require(DIR_WS_INCLUDES . 'header.php'); ?>
<!-- header_eof //-->

<!-- body //-->
<table border="0" width="100%" cellspacing="3" cellpadding="3">
 <tr>
   <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2">
<!-- left_navigation //-->
<?php require(DIR_WS_INCLUDES . 'column_left.php'); ?>
<!-- left_navigation_eof //-->
   </table></td>
<!-- body_text //-->
   <td width="100%" valign="top"><?php echo tep_draw_form('contact_us', tep_href_link(FILENAME_CONTACT_US, 'action=send')); ?><table border="0" width="100%" cellspacing="0" cellpadding="0">
     <tr>
       <td><table border="0" width="100%" cellspacing="0" cellpadding="0">
         <tr>
           <td class="pageHeading"><?php echo HEADING_TITLE; ?></td>
           <td class="pageHeading" align="right"><?php echo tep_image(DIR_WS_IMAGES . 'table_background_contact_us.gif', HEADING_TITLE, HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td>
         </tr>
       </table></td>
     </tr>
     <tr>
       <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
     </tr>
<?php
 if ($messageStack->size('contact') > 0) {
?>
     <tr>
       <td><?php echo $messageStack->output('contact'); ?></td>
     </tr>
     <tr>
       <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
     </tr>
<?php
 }

 if (isset($HTTP_GET_VARS['action']) && ($HTTP_GET_VARS['action'] == 'success')) {
?>
     <tr>
       <td class="main" align="center"><?php echo tep_image(DIR_WS_IMAGES . 'table_background_man_on_board.gif', HEADING_TITLE, '0', '0', 'align="left"') . TEXT_SUCCESS; ?></td>
     </tr>
     <tr>
       <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
     </tr>
     <tr>
       <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
         <tr class="infoBoxContents">
           <td><table border="0" width="100%" cellspacing="0" cellpadding="2">
             <tr>
               <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
               <td align="right"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image_button('button_continue.gif', IMAGE_BUTTON_CONTINUE) . '</a>'; ?></td>
               <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
             </tr>
           </table></td>
         </tr>
       </table></td>
     </tr>
<!-- BOF Super Contact us enhancement 1.41 //-->
<?php
 } else {
 if (tep_session_is_registered('customer_id')) {
   $account_query = tep_db_query("select customers_firstname, customers_lastname, customers_email_address from " . TABLE_CUSTOMERS . " where customers_id = '" . (int)$customer_id . "'");
   $account = tep_db_fetch_array($account_query);

   $name = $account['customers_firstname'] . ' ' . $account['customers_lastname'];
   $email = $account['customers_email_address'];
 }
?>
<tr><td>

<table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
<tr class="infoBoxContents"><td><table><tr>
        <td class="main" valign="top" width=40%><b><?php echo nl2br(STORE_NAME_ADDRESS); ?></b><br><br>
               <?php echo (OPENING_HOURS); ?><br><br></td>
               <td class="main" valign="top" width="60%"><?php echo ENTRY_NAME; ?><br>
				<?php echo tep_draw_input_field('name'); ?><br />
				<?php echo ENTRY_EMAIL; ?><br>
				<?php echo tep_draw_input_field('email'); ?><br />
				<?php echo ENTRY_ORDER_ID; ?><br>
				<?php echo tep_draw_input_field('order_id'); ?><br />
				<?php
	                                               if (CONTACT_US_LIST !=''){
				  echo SEND_TO_TEXT . '<br>';
			                  if(SEND_TO_TYPE=='radio'){
			                  foreach(explode("," ,CONTACT_US_LIST) as $k => $v) {
			               if($k==0){
				$checked=true;
				}else{
				$checked=false;
				}
				echo tep_draw_radio_field('send_to', "$k", $checked). " " .preg_replace('/\<[^*]*/', '', $v);
			              }

		                            }else{
			              foreach(explode("," ,CONTACT_US_LIST) as $k => $v) {
					$send_to_array[] = array('id' => $k, 'text' => preg_replace('/\<[^*]*/', '', $v));
				 }
       		                                           echo tep_draw_pull_down_menu('send_to',  $send_to_array);
		                             }

		                            echo('<br>');
		                            }
                                                                     ?>
                                                                   <?php echo ENTRY_REASON; ?><br>
				<select name="reason">
					<?php echo '<option value="' . REASONS1 . '">' . REASONS1 . '</option>'; ?>
					<?php echo '<option value="' . REASONS2 . '">' . REASONS2 . '</option>'; ?>
					<?php echo '<option value="' . REASONS3 . '">' . REASONS3 . '</option>'; ?>
					<?php echo '<option value="' . REASONS4 . '">' . REASONS4 . '</option>'; ?>
					<?php echo '<option value="' . REASONS5 . '">' . REASONS5 . '</option>'; ?>
					<?php echo '<option value="' . REASONS6 . '">' . REASONS6 . '</option>'; ?>

				</select><br />
				<?php echo ENTRY_ENQUIRY; ?><BR>
                   <?php echo tep_draw_textarea_field('enquiry', 'soft', 50, 15, tep_sanitize_string($_POST['enquiry']), '', false); ?>
                   <br />
                   </td></tr></table></td>
</tr>
</table>
<br />
<table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
         <tr class="infoBoxContents">
           <td><table border="0" width="100%" cellspacing="0" cellpadding="2">
             <tr>
               <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
               <td align="right"><?php echo tep_image_submit('button_send.gif', IMAGE_BUTTON_CONTINUE); ?></td>
               <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
             </tr>
           </table></td>
         </tr>
       </table></td></tr>   
<?php
 }
?>
<!-- EOF Super Contact us enhancement 1.41 //-->

   </table></form></td>
<!-- body_text_eof //-->
   <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2">
<!-- right_navigation //-->
<?php require(DIR_WS_INCLUDES . 'column_right.php'); ?>
<!-- right_navigation_eof //-->
   </table></td>
 </tr>
</table>
<!-- body_eof //-->

<!-- footer //-->
<?php require(DIR_WS_INCLUDES . 'footer.php'); ?>
<!-- footer_eof //-->
<br>
</body>
</html>
<?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>

 

The continue button don't show up as well... Any idea?


"I am not a Newbie but I am not an Expert either..."
"Lets learn about osCommerce together!..."

Share this post


Link to post
Share on other sites

Hi guys! I have managed to solved the continue button not showing up...This what I did:

 

The original code was:

<td align="right"><?php echo tep_image_submit('button_send.gif', IMAGE_BUTTON_CONTINUE); ?></td>

 

I changed the code to:

<td align="right"><?php echo tep_image_submit('button_continue.gif', IMAGE_BUTTON_CONTINUE);?></td>


"I am not a Newbie but I am not an Expert either..."
"Lets learn about osCommerce together!..."

Share this post


Link to post
Share on other sites

However, I still can't solve the problem when a customer sends e-mail using the form. It will send twice and there is no confirmation of "Message successfully send to store owner".

 

Hope we can solve this together.


"I am not a Newbie but I am not an Expert either..."
"Lets learn about osCommerce together!..."

Share this post


Link to post
Share on other sites

Hi Guys

 

I have had this enhancement on our site for a while now but recently I have noticed that our contact us page is not showing when the links are clicked on!

I don't know why this is as it was working fine for months before. any help would appreciated.

web address is www.computercleaningproducts.co.uk

 

thanks

Share this post


Link to post
Share on other sites

I still don't have this working as it should do, and haven't see a fix for it yet

 

Has anyone got this working as described on the contrib page?

 

(I'm using osC RC1 with it)

 

Gaz


Wearing a seatbelt prevents head injuries when the computer crashes - - - Yeah Right!!! - not in this office.

Share this post


Link to post
Share on other sites

This is seriously an AWESOME contribution!! thanks soo much for making this!!

 

I do have a LITTLE issue though.. When i send an email through that form, it sends it TWICE!! I am PRETTY sure i did the installation MOSTLY right, obviously not entirely, where did i go wrong??


A great place for newbies to start

Road Map to oscommerce File Structure

DO NOT PM ME FOR HELP. My time is valuable, unless i ask you to PM me, please dont. You will get better help if you post publicly. I am not as good at this as you think anyways!

 

HOWEVER, you can visit my blog (go to my profile to see it) and post a question there, i will find time to get back and answer you

 

Proud Memeber of the CODE BREAKERS CLUB!!

Share this post


Link to post
Share on other sites

i also have ANOTHER issue, is there a place where i can make the value for the input of emails on the admin side longer?? right now i only got to put 5 of my email addresses into the field before the last one got cut off half way..

 

ANY help of info would be appreciated.


A great place for newbies to start

Road Map to oscommerce File Structure

DO NOT PM ME FOR HELP. My time is valuable, unless i ask you to PM me, please dont. You will get better help if you post publicly. I am not as good at this as you think anyways!

 

HOWEVER, you can visit my blog (go to my profile to see it) and post a question there, i will find time to get back and answer you

 

Proud Memeber of the CODE BREAKERS CLUB!!

Share this post


Link to post
Share on other sites

Hi,

I have installed the 'Super Contact Us' module to my store, I followed the instructions supplied with the contributions to install correctly. However I have encountered a slight issue with sending emails to different departments. When the customer sends emails by selecting the dept. or subject - all emails are sent to the same email address (default of the store rather than the relevent email address selected)

 

How can I correct this issue?

Share this post


Link to post
Share on other sites
More test results

 

In this code version -

	if (tep_validate_email($email_address)) {
	tep_mail(STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS, $emailsubject, $enquiry, $name, $email_address);
if (CONTACT_US_LIST !=''){
	$send_to_array=explode("," ,CONTACT_US_LIST);
	preg_match('/\<[^>]+\>/', $send_to_array[$send_to], $send_email_array);
	$send_to_email= eregi_replace (">", "", $send_email_array[0]);
	$send_to_email= eregi_replace ("<", "", $send_to_email);

 

the second line appears to be over-riding the list of emails input for the mod - i.e. regardless of which email reason (& therefore recipient address) is chosen, the second line forces all emails to be sent to STORE_OWNER_EMAIL_ADDRESS

 

I've tried moving it around, but then emails are not received at all.

 

This seems to indicate that lines 4 - 6 above are not correctly preparing the email addresses from the list input to the mod field in Admin.

 

I've now put 30 hours into this and cannot get it to send to the configured range of email addresses, so I'm leaving it that all emails go to STORE_OWNER_EMAIL_ADDRESS until someone comes up with a fix.

 

I've been having the same problem as well. I simply changed this line:

 

tep_mail(STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS, $emailsubject, $enquiry, $name, $email_address);

 

to this:

 

tep_mail($to_name, $to_email_address, $emailsubject, $inquiry, $name, $email_address);

 

...and that did the trick. No more duplicate e-mails. I'm sure there's a better way, but this way does work.

 

Happy coding!

 

-/Kevin

Share this post


Link to post
Share on other sites

example.jpg

 

 

is there a way to add a map like the one i have exampled here?


Remember what the Bible says: He who is without sin, cast the first rock. And I shall smoketh it.

Share this post


Link to post
Share on other sites

Hi, First of all, this is a great contribution! Thanks for all your work!

 

I installed this contribution on my site (OSC 2.2rc2a) with STS installed. Everything seems to work fine, but now whenever I try sending an email through the contact form, the email is sent, however an error message appears above the Enquiry sent message. The error is "Your E-Mail Address does not appear to be valid - please make any necessary corrections." I am also now receiving this message when trying to register a new account. However, in that case, the account is not created. This is a big problem that I hopefully can get resolved here.

 

Also, when a message is sent through the contact page, the following errors come up on my server's error log:

 

[sun Oct 05 16:07:03 2008] [error] [client 67.181.188.252] PHP Warning: file(includes/tld.txt) [<a href='function.file'>function.file</a>]: failed to open stream: No such file or directory in /var/www/vhosts/mywebsite.net/httpdocs/includes/functions/validations.php on line 85, referer: http://www.mywebsite.net/contact_us.php

[sun Oct 05 16:07:03 2008] [error] [client 67.181.188.252] PHP Warning: Variable passed to each() is not an array or object in /var/www/vhosts/mywebsite.net/httpdocs/includes/functions/validations.php on line 86, referer: http://www.mywebsite.net/contact_us.php

[sun Oct 05 16:07:03 2008] [error] [client 67.181.188.252] PHP Warning: eregi() [<a href='function.eregi'>function.eregi</a>]: REG_EMPTY in /var/www/vhosts/mywebsite.net/httpdocs/includes/functions/validations.php on line 97, referer: http://www.mywebsite.net/contact_us.php

 

I have searched for hours now to try and resolve this, but can't seem to find anything. Given the fact that this error is now coming up when trying to register, I have to assume that this error resides in the SQL file and not the contact_us.php file. I have also verified that "Verify e-mail address through a DNS server" in Configuration/Email Options has been set to False.

 

Can someone please help me resolve this?

 

Thanks

Share this post


Link to post
Share on other sites
Hi, First of all, this is a great contribution! Thanks for all your work!

 

I installed this contribution on my site (OSC 2.2rc2a) with STS installed. Everything seems to work fine, but now whenever I try sending an email through the contact form, the email is sent, however an error message appears above the Enquiry sent message. The error is "Your E-Mail Address does not appear to be valid - please make any necessary corrections." I am also now receiving this message when trying to register a new account. However, in that case, the account is not created. This is a big problem that I hopefully can get resolved here.

 

Also, when a message is sent through the contact page, the following errors come up on my server's error log:

 

[sun Oct 05 16:07:03 2008] [error] [client 67.181.188.252] PHP Warning: file(includes/tld.txt) [<a href='function.file'>function.file</a>]: failed to open stream: No such file or directory in /var/www/vhosts/mywebsite.net/httpdocs/includes/functions/validations.php on line 85, referer: http://www.mywebsite.net/contact_us.php

[sun Oct 05 16:07:03 2008] [error] [client 67.181.188.252] PHP Warning: Variable passed to each() is not an array or object in /var/www/vhosts/mywebsite.net/httpdocs/includes/functions/validations.php on line 86, referer: http://www.mywebsite.net/contact_us.php

[sun Oct 05 16:07:03 2008] [error] [client 67.181.188.252] PHP Warning: eregi() [<a href='function.eregi'>function.eregi</a>]: REG_EMPTY in /var/www/vhosts/mywebsite.net/httpdocs/includes/functions/validations.php on line 97, referer: http://www.mywebsite.net/contact_us.php

 

I have searched for hours now to try and resolve this, but can't seem to find anything. Given the fact that this error is now coming up when trying to register, I have to assume that this error resides in the SQL file and not the contact_us.php file. I have also verified that "Verify e-mail address through a DNS server" in Configuration/Email Options has been set to False.

 

Can someone please help me resolve this?

 

Thanks

 

OK, I've resolved the registration issue by adding the tld.txt file in the catalog/includes folder. There was already one in the catalog/admin/includes folder, but this resolved my registration issue. Still getting the error with the Contact Us page. Any suggestions? Also, started this thread at: http://forums.oscommerce.com/index.php?showtopic=316986 in case this was not contribution specific.

Share this post


Link to post
Share on other sites

I have installed version 1.42.

Everything is working fine (I get the success page, the email is sent and received by me), except for one thing.

Everytime it shows the message that the email has been sent, you see on top of my site the message:

 

Warning: mail() [function.mail]: SMTP server response: 503 5.5.2 Need Rcpt command. in ...........\catalog\includes\classes\email.php on line 520

 

I 've tried everything I could find about this, but nothing is working.

 

I'm on a Windows server, php 5.2.3, Mysql 5.0

I have in the emailoptions: SMTP (other things aren't working)

 

The line in catalog\includes\classes\email.php on line 520 shows:

return mail($to_addr, $subject, $this->output, 'From: ' . $from . $this->lf . 'To: ' . $to . $this->lf . implode($this->lf, $this->headers) . $this->lf . implode($this->lf, $xtra_headers));

 

Is there anyone who can help me with this

Thank you

Share this post


Link to post
Share on other sites

how can I add a field for telephone # and, when i get the email i dont get the results of the fields, i mean i get the Order ID and the message but i dont get the full name or email results.

 

is it supposed to be like that?

 

i get the order id so I should be able to get the full name and email address, which file is that in?

Share this post


Link to post
Share on other sites
NO SUCCESS PAGE everything else works

 

Thanks to all for their posts to resolve a few minor bugs

 

Please help

Thank You

 

 

I resolved the no redirect to success page by adding the code below:

	tep_redirect(tep_href_link(FILENAME_CONTACT_US, 'action=success'));

 

After the // EOF Super Contact us enhancement 1.41 around line 53.

Share this post


Link to post
Share on other sites

hiya people.

 

I get the followiong error when i click on Send

 

Warning: Cannot modify header information - headers already sent by (output started at /home/sites/extremewebsitesolutions.com/public_html/includes/languages/english/contact_us.php:51) in /home/sites/extremewebsitesolutions.com/public_html/includes/functions/general.php on line 33

 

i have

 

<!-- BOF Super Contact us enhancement 1.41 //-->

 

EDIT::::

 

THE ABOVE DOES WORK. I FIXED IT BY ADDING AN EMAILL ADDRESS ON THE ADMIN PANEL

 

WHEN I SEND THE EMAIL OUT I GET THIS ERROR

 

No recipient addresses found in header

 

ON TOP OF SEND SUCCESS PAGE

Thanks

Edited by raggy

Share this post


Link to post
Share on other sites
hiya people.

 

I get the followiong error when i click on Send

 

Warning: Cannot modify header information - headers already sent by (output started at /home/sites/extremewebsitesolutions.com/public_html/includes/languages/english/contact_us.php:51) in /home/sites/extremewebsitesolutions.com/public_html/includes/functions/general.php on line 33

 

i have

 

<!-- BOF Super Contact us enhancement 1.41 //-->

 

EDIT::::

 

THE ABOVE DOES WORK. I FIXED IT BY ADDING AN EMAILL ADDRESS ON THE ADMIN PANEL

 

WHEN I SEND THE EMAIL OUT I GET THIS ERROR

 

No recipient addresses found in header

 

ON TOP OF SEND SUCCESS PAGE

Thanks

You probably have white space or an error on includes/languages/english/contact_us.php:51


The Coopco Underwear Shop

 

If you live to be 100 years of age, that means you have lived for 36,525 days. Don't waste another, there aren't many left.

Share this post


Link to post
Share on other sites
You probably have white space or an error on includes/languages/english/contact_us.php:51

 

what does white space mean?

 

includes/languages/english/contact_us.php:51 error , everything is ok there :)

 

Error still there

 

?

 

No recipient addresses found in header

Edited by raggy

Share this post


Link to post
Share on other sites
what does white space mean?

 

includes/languages/english/contact_us.php:51 error , everything is ok there :)

 

Error still there

 

?

 

No recipient addresses found in header

 

I COULD NOT EDIT the top post,,

 

but i sorted it. I had

 

if (isset($HTTP_GET_VARS['action']) && ($HTTP_GET_VARS['action'] == 'send')) {

 

2 times on the contact us.php lol sorry

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×