Forums / General Questions / Contact Us not working, receiving alert messages even though all fields filled in

Contact Us not working, receiving alert messages even though all fields filled in

Views: 7,385

Results 41 to 60 of 81
27 Aug 2015, 5:43 AM
#41
blackeyed5 avatar

blackeyed5

New Zenner

Join Date:
May 2015
Location:
New Jersey
Posts:
59
Plugin Contributions:
0

Contact Us not working, receiving alert messages even though all fields filled in

lruskauff:

If I go to: https://www.atomicorchard.com/contact.html I get the message you are in maintenance mode, and this site is marked as SSL.

If I go to: https://shop.atomicorchard.com/ it crosses out the https (site not SSL).

Are these two linked? Did you turn the SSL on the wrong shop?

I don't know why you're seeing that, as it's not showing me that... I only turned it off and on for the shop.atomicorchard. It should be on now. I was working on the main site (atomicorchard.com) just editing some images before, but didn't mess with the ssl.

I just disconnected Dreamweaver from the site, so maybe that might fix it? I don't know...I didn't do anything other than change 'false' to 'true'.

27 Aug 2015, 5:45 AM
#42
blackeyed5 avatar

blackeyed5

New Zenner

Join Date:
May 2015
Location:
New Jersey
Posts:
59
Plugin Contributions:
0

Re: Contact Us not working, receiving alert messages even though all fields filled in

blackeyed5:

I don't know why you're seeing that, as it's not showing me that... I only turned it off and on for the shop.atomicorchard. It should be on now. I was working on the main site (atomicorchard.com) just editing some images before, but didn't mess with the ssl.

I just disconnected Dreamweaver from the site, so maybe that might fix it? I don't know...I didn't do anything other than change 'false' to 'true'.

It does cross out the https on page: https://shop.atomicorchard.com/index.php?main_page=contact_us (which is what one of the problems is), but doesn't on: https://shop.atomicorchard.com for me.

27 Aug 2015, 5:48 AM
#43
blackeyed5 avatar

blackeyed5

New Zenner

Join Date:
May 2015
Location:
New Jersey
Posts:
59
Plugin Contributions:
0

Re: Contact Us not working, receiving alert messages even though all fields filled in

I'm about to sign off now though, as it's quite late where I am. Not sure where you are located. If you plan on continuing to help tomorrow, perhaps we can schedule a time to come online so we can work together? Your call. Again, I appreciate all your help you're giving me.

27 Aug 2015, 5:52 AM
#44
lruskauff avatar

lruskauff

Totally Zenned

Join Date:
Sep 2008
Location:
WA
Posts:
559
Plugin Contributions:
0

Re: Contact Us not working, receiving alert messages even though all fields filled in

Do a search on "cloudflare" using your admin developer tools. Find the file with just the "http" in it and change it to https.

lruskauff

27 Aug 2015, 5:54 AM
#45
blackeyed5 avatar

blackeyed5

New Zenner

Join Date:
May 2015
Location:
New Jersey
Posts:
59
Plugin Contributions:
0

Re: Contact Us not working, receiving alert messages even though all fields filled in

Oooohh!!! Are you talking about, "While the site is under maintenance,
feel free to drop us a line at info[at]atomicorchard.com!" on that contact page?

Don't worry about that. I wrote that in there. It's not an error or any significance to being in actual maintenance mode. That's just text I put in my site. Yeah, don't worry about anything on https://www.atomicorchard.com, as it's just straight HTML, and doesn't have anything to do with any files on shop.atomicorchard.com. It's my landing page site that shop.atomicorchard.com will be linking from.

I see where you may have been confused.

27 Aug 2015, 6:00 AM
#46
blackeyed5 avatar

blackeyed5

New Zenner

Join Date:
May 2015
Location:
New Jersey
Posts:
59
Plugin Contributions:
0

Re: Contact Us not working, receiving alert messages even though all fields filled in

lruskauff:

Do a search on "cloudflare" using your admin developer tools. Find the file with just the "http" in it and change it to https.

lruskauff

I don't follow you... I don't use cloudflare. What is it? Let me know and I will follow up with you tomorrow. I have to sign off now though. Work in the morning...

27 Aug 2015, 6:06 AM
#47
lruskauff avatar

lruskauff

Totally Zenned

Join Date:
Sep 2008
Location:
WA
Posts:
559
Plugin Contributions:
0

Re: Contact Us not working, receiving alert messages even though all fields filled in

The code calls it for a jquery. It needs to call it with an "https" and not a "http".

So you go to your admin. Under TOOLS there is DEVELOPERS TOOL KIT. Select it and on the last line, enter the word "cloudflare". Let it search php files. Select SEARCH. It will give you all of the files that contain that word and the line it is used in.

The code will look something like:

/home/thestitc/public_html/includes/templates/westminster_new/templates/tpl_modules_mobile_categories_tabs.php

<script src="http://cdnjs.cloudflare.com/ajax/libs/jquery-easing/1.3/jquery.easing.min.js" type="text/javascript"></script> 

Actually, the first line was where to find it. So then go to that file and edit it (with a text editor like Notepad++) and change http to https. I should have seen that right away, sorry. That double // threw me.

Also put the site back into SSL. It still wasn't showing up.

27 Aug 2015, 1:33 PM
#48
balihr avatar

balihr

Totally Zenned

Join Date:
Oct 2008
Location:
Croatia
Posts:
1,805
Plugin Contributions:
22

Re: Contact Us not working, receiving alert messages even though all fields filled in

Hm...

The mixed content error should not have any effect on form processing as it's standard php, it's not an AJAX request that might fail because of conflicts... It should be fixed, of course, but it's got nothing to do with this issue.

There's something that's puzzling me with the template... I downloaded the template and checked it's code and there's something that's confusing me. I'll go into details later, but for now, please humor me and try the following:
replace your includes/modules/pages/contact_us/header_php.php with the stock 1.5.4 version (Anne modified this file for template purposes). I've attached the file so you can just upload it. Make sure you keep a backup of the current file. Once you upload it, see if it works and post back here so we can continue.

If it doesn't work, keep the code and switch to classic template, then try again.

header_php.php file:

<?php
/**
 * Contact Us Page
 *
 * @package page
 * @copyright Copyright 2003-2013 Zen Cart Development Team
 * @copyright Portions Copyright 2003 osCommerce
 * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
 * @version GIT: $Id: Author: DrByte  Sun Feb 17 23:22:33 2013 -0500 Modified in v1.5.2 $
 */

// This should be first line of the script:
$zco_notifier->notify('NOTIFY_HEADER_START_CONTACT_US');

require(DIR_WS_MODULES . zen_get_module_directory('require_languages.php'));

$error = false;
if (isset($_GET['action']) && ($_GET['action'] == 'send')) {
  $name = zen_db_prepare_input($_POST['contactname']);
  $email_address = zen_db_prepare_input($_POST['email']);
  $enquiry = zen_db_prepare_input(strip_tags($_POST['enquiry']));
  $antiSpam = isset($_POST['should_be_empty']) ? zen_db_prepare_input($_POST['should_be_empty']) : '';
  $zco_notifier->notify('NOTIFY_CONTACT_US_CAPTCHA_CHECK');

  $zc_validate_email = zen_validate_email($email_address);

  if ($zc_validate_email and !empty($enquiry) and !empty($name) && $error == FALSE) {
    // if anti-spam is not triggered, prepare and send email:
   if ($antiSpam != '') {
      $zco_notifier->notify('NOTIFY_SPAM_DETECTED_USING_CONTACT_US');
   } elseif ($antiSpam == '') {

    // auto complete when logged in
    if($_SESSION['customer_id']) {
      $sql = "SELECT customers_id, customers_firstname, customers_lastname, customers_password, customers_email_address, customers_default_address_id
              FROM " . TABLE_CUSTOMERS . "
              WHERE customers_id = :customersID";

      $sql = $db->bindVars($sql, ':customersID', $_SESSION['customer_id'], 'integer');
      $check_customer = $db->Execute($sql);
      $customer_email= $check_customer->fields['customers_email_address'];
      $customer_name= $check_customer->fields['customers_firstname'] . ' ' . $check_customer->fields['customers_lastname'];
    } else {
      $customer_email = NOT_LOGGED_IN_TEXT;
      $customer_name = NOT_LOGGED_IN_TEXT;
    }

    // use contact us dropdown if defined
    if (CONTACT_US_LIST !=''){
      $send_to_array=explode("," ,CONTACT_US_LIST);
      preg_match('/\<[^>]+\>/', $send_to_array[$_POST['send_to']], $send_email_array);
      $send_to_email= preg_replace ("/>/", "", $send_email_array[0]);
      $send_to_email= trim(preg_replace("/</", "", $send_to_email));
      $send_to_name = trim(preg_replace('/\<[^*]*/', '', $send_to_array[$_POST['send_to']]));
    } else {  //otherwise default to EMAIL_FROM and store name
    $send_to_email = trim(EMAIL_FROM);
    $send_to_name =  trim(STORE_NAME);
    }

    // Prepare extra-info details
    $extra_info = email_collect_extra_info($name, $email_address, $customer_name, $customer_email);
    // Prepare Text-only portion of message
    $text_message = OFFICE_FROM . "\t" . $name . "\n" .
    OFFICE_EMAIL . "\t" . $email_address . "\n\n" .
    '------------------------------------------------------' . "\n\n" .
    strip_tags($_POST['enquiry']) .  "\n\n" .
    '------------------------------------------------------' . "\n\n" .
    $extra_info['TEXT'];
    // Prepare HTML-portion of message
    $html_msg['EMAIL_MESSAGE_HTML'] = strip_tags($_POST['enquiry']);
    $html_msg['CONTACT_US_OFFICE_FROM'] = OFFICE_FROM . ' ' . $name . '<br />' . OFFICE_EMAIL . '(' . $email_address . ')';
    $html_msg['EXTRA_INFO'] = $extra_info['HTML'];
    // Send message
    zen_mail($send_to_name, $send_to_email, EMAIL_SUBJECT, $text_message, $name, $email_address, $html_msg,'contact_us');
   }
    zen_redirect(zen_href_link(FILENAME_CONTACT_US, 'action=success', 'SSL'));
  } else {
    $error = true;
    if (empty($name)) {
      $messageStack->add('contact', ENTRY_EMAIL_NAME_CHECK_ERROR);
    }
    if ($zc_validate_email == false) {
      $messageStack->add('contact', ENTRY_EMAIL_ADDRESS_CHECK_ERROR);
    }
    if (empty($enquiry)) {
      $messageStack->add('contact', ENTRY_EMAIL_CONTENT_CHECK_ERROR);
    }
  }
} // end action==send


if (ENABLE_SSL == 'true' && $request_type != 'SSL') {
  zen_redirect(zen_href_link(FILENAME_CONTACT_US, '', 'SSL'));
}

// default email and name if customer is logged in
if($_SESSION['customer_id']) {
  $sql = "SELECT customers_id, customers_firstname, customers_lastname, customers_password, customers_email_address, customers_default_address_id
          FROM " . TABLE_CUSTOMERS . "
          WHERE customers_id = :customersID";

  $sql = $db->bindVars($sql, ':customersID', $_SESSION['customer_id'], 'integer');
  $check_customer = $db->Execute($sql);
  $email_address = $check_customer->fields['customers_email_address'];
  $name= $check_customer->fields['customers_firstname'] . ' ' . $check_customer->fields['customers_lastname'];
}

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

// include template specific file name defines
$define_page = zen_get_file_directory(DIR_WS_LANGUAGES . $_SESSION['language'] . '/html_includes/', FILENAME_DEFINE_CONTACT_US, 'false');

$breadcrumb->add(NAVBAR_TITLE);

// This should be the last line of the script:
$zco_notifier->notify('NOTIFY_HEADER_END_CONTACT_US');

My site - Pro ZC Help
My portfolio | My plugins

27 Aug 2015, 3:31 PM
#49
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Contact Us not working, receiving alert messages even though all fields filled in

Would also suggest identifying all filenames in that directory that have a filename ending with .php

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

28 Aug 2015, 12:55 AM
#50
blackeyed5 avatar

blackeyed5

New Zenner

Join Date:
May 2015
Location:
New Jersey
Posts:
59
Plugin Contributions:
0

Re: Contact Us not working, receiving alert messages even though all fields filled in

lruskauff:

The code calls it for a jquery. It needs to call it with an "https" and not a "http".

So you go to your admin. Under TOOLS there is DEVELOPERS TOOL KIT. Select it and on the last line, enter the word "cloudflare". Let it search php files. Select SEARCH. It will give you all of the files that contain that word and the line it is used in.

The code will look something like:

/home/thestitc/public_html/includes/templates/westminster_new/templates/tpl_modules_mobile_categories_tabs.php

<script src="http://cdnjs.cloudflare.com/ajax/libs/jquery-easing/1.3/jquery.easing.min.js" type="text/javascript"></script>
> 
> Actually, the first line was where to find it.  So then go to that file and edit it (with a text editor like Notepad++) and change http to https.  I should have seen that right away, sorry.  That double // threw me. 
> 
> Also put the site back into SSL.  It still wasn't showing up.

Ok, I updated this to https, but it doesn't seem like it did anything....
28 Aug 2015, 12:57 AM
#51
blackeyed5 avatar

blackeyed5

New Zenner

Join Date:
May 2015
Location:
New Jersey
Posts:
59
Plugin Contributions:
0

Re: Contact Us not working, receiving alert messages even though all fields filled in

balihr:

Hm...

The mixed content error should not have any effect on form processing as it's standard php, it's not an AJAX request that might fail because of conflicts... It should be fixed, of course, but it's got nothing to do with this issue.

There's something that's puzzling me with the template... I downloaded the template and checked it's code and there's something that's confusing me. I'll go into details later, but for now, please humor me and try the following:
replace your includes/modules/pages/contact_us/header_php.php with the stock 1.5.4 version (Anne modified this file for template purposes). I've attached the file so you can just upload it. Make sure you keep a backup of the current file. Once you upload it, see if it works and post back here so we can continue.

If it doesn't work, keep the code and switch to classic template, then try again.

header_php.php file:

<?php /** * Contact Us Page * * @package page * @copyright Copyright 2003-2013 Zen Cart Development Team * @copyright Portions Copyright 2003 osCommerce * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0 * @version GIT: $Id: Author: DrByte Sun Feb 17 23:22:33 2013 -0500 Modified in v1.5.2 $ */ // This should be first line of the script: $zco_notifier->notify('NOTIFY_HEADER_START_CONTACT_US'); require(DIR_WS_MODULES . zen_get_module_directory('require_languages.php')); $error = false; if (isset($_GET['action']) && ($_GET['action'] == 'send')) { $name = zen_db_prepare_input($_POST['contactname']); $email_address = zen_db_prepare_input($_POST['email']); $enquiry = zen_db_prepare_input(strip_tags($_POST['enquiry'])); $antiSpam = isset($_POST['should_be_empty']) ? zen_db_prepare_input($_POST['should_be_empty']) : ''; $zco_notifier->notify('NOTIFY_CONTACT_US_CAPTCHA_CHECK'); $zc_validate_email = zen_validate_email($email_address); if ($zc_validate_email and !empty($enquiry) and !empty($name) && $error == FALSE) { // if anti-spam is not triggered, prepare and send email: if ($antiSpam != '') { $zco_notifier->notify('NOTIFY_SPAM_DETECTED_USING_CONTACT_US'); } elseif ($antiSpam == '') { // auto complete when logged in if($_SESSION['customer_id']) { $sql = "SELECT customers_id, customers_firstname, customers_lastname, customers_password, customers_email_address, customers_default_address_id FROM " . TABLE_CUSTOMERS . " WHERE customers_id = :customersID"; $sql = $db->bindVars($sql, ':customersID', $_SESSION['customer_id'], 'integer'); $check_customer = $db->Execute($sql); $customer_email= $check_customer->fields['customers_email_address']; $customer_name= $check_customer->fields['customers_firstname'] . ' ' . $check_customer->fields['customers_lastname']; } else { $customer_email = NOT_LOGGED_IN_TEXT; $customer_name = NOT_LOGGED_IN_TEXT; } // use contact us dropdown if defined if (CONTACT_US_LIST !=''){ $send_to_array=explode("," ,CONTACT_US_LIST); preg_match('/\<[^>]+\>/', $send_to_array[$_POST['send_to']], $send_email_array); $send_to_email= preg_replace ("/>/", "", $send_email_array[0]); $send_to_email= trim(preg_replace("/</", "", $send_to_email)); $send_to_name = trim(preg_replace('/\<[^*]*/', '', $send_to_array[$_POST['send_to']])); } else { //otherwise default to EMAIL_FROM and store name $send_to_email = trim(EMAIL_FROM); $send_to_name = trim(STORE_NAME); } // Prepare extra-info details $extra_info = email_collect_extra_info($name, $email_address, $customer_name, $customer_email); // Prepare Text-only portion of message $text_message = OFFICE_FROM . "\t" . $name . "\n" . OFFICE_EMAIL . "\t" . $email_address . "\n\n" . '------------------------------------------------------' . "\n\n" . strip_tags($_POST['enquiry']) . "\n\n" . '------------------------------------------------------' . "\n\n" . $extra_info['TEXT']; // Prepare HTML-portion of message $html_msg['EMAIL_MESSAGE_HTML'] = strip_tags($_POST['enquiry']); $html_msg['CONTACT_US_OFFICE_FROM'] = OFFICE_FROM . ' ' . $name . '<br />' . OFFICE_EMAIL . '(' . $email_address . ')'; $html_msg['EXTRA_INFO'] = $extra_info['HTML']; // Send message zen_mail($send_to_name, $send_to_email, EMAIL_SUBJECT, $text_message, $name, $email_address, $html_msg,'contact_us'); } zen_redirect(zen_href_link(FILENAME_CONTACT_US, 'action=success', 'SSL')); } else { $error = true; if (empty($name)) { $messageStack->add('contact', ENTRY_EMAIL_NAME_CHECK_ERROR); } if ($zc_validate_email == false) { $messageStack->add('contact', ENTRY_EMAIL_ADDRESS_CHECK_ERROR); } if (empty($enquiry)) { $messageStack->add('contact', ENTRY_EMAIL_CONTENT_CHECK_ERROR); } } } // end action==send if (ENABLE_SSL == 'true' && $request_type != 'SSL') { zen_redirect(zen_href_link(FILENAME_CONTACT_US, '', 'SSL')); } // default email and name if customer is logged in if($_SESSION['customer_id']) { $sql = "SELECT customers_id, customers_firstname, customers_lastname, customers_password, customers_email_address, customers_default_address_id FROM " . TABLE_CUSTOMERS . " WHERE customers_id = :customersID"; $sql = $db->bindVars($sql, ':customersID', $_SESSION['customer_id'], 'integer'); $check_customer = $db->Execute($sql); $email_address = $check_customer->fields['customers_email_address']; $name= $check_customer->fields['customers_firstname'] . ' ' . $check_customer->fields['customers_lastname']; } $send_to_array = array(); if (CONTACT_US_LIST !=''){ foreach(explode(",", CONTACT_US_LIST) as $k => $v) { $send_to_array[] = array('id' => $k, 'text' => preg_replace('/\<[^*]*/', '', $v)); } } // include template specific file name defines $define_page = zen_get_file_directory(DIR_WS_LANGUAGES . $_SESSION['language'] . '/html_includes/', FILENAME_DEFINE_CONTACT_US, 'false'); $breadcrumb->add(NAVBAR_TITLE); // This should be the last line of the script: $zco_notifier->notify('NOTIFY_HEADER_END_CONTACT_US'); ``` I did this, and it's still not working....I switched back to classic mode, and still not working. Still getting the same error messages (except for the subject line one since that's not included).
28 Aug 2015, 1:00 AM
#52
blackeyed5 avatar

blackeyed5

New Zenner

Join Date:
May 2015
Location:
New Jersey
Posts:
59
Plugin Contributions:
0

Re: Contact Us not working, receiving alert messages even though all fields filled in

blackeyed5:

Ok, I updated this to https, but it doesn't seem like it did anything....

Actually, that's not true...It looks like it fixed the broken https problem! I just had to clear my cookies/history. So that is one problem down!! Thanks!

28 Aug 2015, 1:04 AM
#53
blackeyed5 avatar

blackeyed5

New Zenner

Join Date:
May 2015
Location:
New Jersey
Posts:
59
Plugin Contributions:
0

Re: Contact Us not working, receiving alert messages even though all fields filled in

blackeyed5:

Actually, that's not true...It looks like it fixed the broken https problem! I just had to clear my cookies/history. So that is one problem down!! Thanks!

I take that back....It fixed it in Firefox, but it's still showing broken https in Chrome. ugh...

28 Aug 2015, 1:30 AM
#54
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Contact Us not working, receiving alert messages even though all fields filled in

What file(s) are in the folder: includes/modules/pages/contact_us?

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

28 Aug 2015, 1:43 AM
#55
blackeyed5 avatar

blackeyed5

New Zenner

Join Date:
May 2015
Location:
New Jersey
Posts:
59
Plugin Contributions:
0

Re: Contact Us not working, receiving alert messages even though all fields filled in

mc12345678:

What file(s) are in the folder: includes/modules/pages/contact_us?

I have:

header_php.php
on_load_main.js

28 Aug 2015, 2:15 AM
#56
blackeyed5 avatar

blackeyed5

New Zenner

Join Date:
May 2015
Location:
New Jersey
Posts:
59
Plugin Contributions:
0

Re: Contact Us not working, receiving alert messages even though all fields filled in

Do you think maybe the issue with the page names (for example, it displaying: "https://shop.atomicorchard.com/index.php?main_page=contact_us" in the browser instead of it properly displaying: "https://shop.atomicorchard.com/contact_us") is the issue for all of it?

Maybe if that gets resolved, the https won't be broken, as having that '.php?' in the title might be causing an error, and maybe with the contact us form, it's trying to read from ".../contact_us" but since ".../index.php?main_page=contact_us" is displaying instead it's not able to read from it?

28 Aug 2015, 2:46 AM
#57
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Contact Us not working, receiving alert messages even though all fields filled in

blackeyed5:

Do you think maybe the issue with the page names (for example, it displaying: "https://shop.atomicorchard.com/index.php?main_page=contact_us" in the browser instead of it properly displaying: "https://shop.atomicorchard.com/contact_us") is the issue for all of it?

Maybe if that gets resolved, the https won't be broken, as having that '.php?' in the title might be causing an error, and maybe with the contact us form, it's trying to read from ".../contact_us" but since ".../index.php?main_page=contact_us" is displaying instead it's not able to read from it?

Which URI rewriter are you using again?

I was going to ask for the contents of includes/templates/winchester_black/templates/tpl_contact_us.php...

There is something wrong with it as the <form action for contact_us should be directing to https and it is not... But, the login form is working fine...

BTW, would say that it has no effect, again because ?main_page=login works fine...

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

28 Aug 2015, 3:02 AM
#58
blackeyed5 avatar

blackeyed5

New Zenner

Join Date:
May 2015
Location:
New Jersey
Posts:
59
Plugin Contributions:
0

Re: Contact Us not working, receiving alert messages even though all fields filled in

mc12345678:

Which URI rewriter are you using again?

I was going to ask for the contents of includes/templates/winchester_black/templates/tpl_contact_us.php

There is something wrong with it as the <form action for contact_us should be directing to https and it is not... But, the login form is working fine...

BTW, would say that it has no effect, again because ?main_page=login works fine...

I use Dreamweaver to edit my files. Is that what you mean? I don't know what a URI rewriter is...

I have "tpl_contact_us_default.php" file in that folder. I don't have specifically "tpl_contact_us.php" in that folder.

Here is the "tpl_contact_us_default.php" code:

<?php
/**
 * Page Template
 *
 * Loaded automatically by index.php?main_page=contact_us.<br />
 * Displays contact us page form.
 * @package templateSystem
 * @copyright Copyright 2003-2012 Zen Cart Development Team
 * @copyright Portions Copyright 2003 osCommerce
 * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
 * @version $Id: tpl_contact_us_default.php 18695 2011-05-04 05:24:19Z drbyte $
 * Updated Contact Us Subject for v1.5.1 by Judy Gunderson (stellarweb) 2013-08-16
 * Modified by Anne (Picaflor-Azul.com) Winchester Respnsive v1.0
 */
?>
<div class="centerColumn" id="contactUsDefault">

<?php echo zen_draw_form('contact_us', zen_href_link(FILENAME_CONTACT_US, 'action=send')); ?>


<?php
  if (isset($_GET['action']) && ($_GET['action'] == 'success')) {
?>

<div class="mainContent success"><?php echo TEXT_SUCCESS; ?></div>

<div class="buttonRow success-back"><?php echo zen_back_link() . zen_image_button(BUTTON_IMAGE_BACK, BUTTON_BACK_ALT) . '</a>'; ?></div>

<?php
  } else {
?>

<h1><?php echo HEADING_TITLE; ?></h1>


<?php if (DEFINE_CONTACT_US_STATUS >= '1' and DEFINE_CONTACT_US_STATUS <= '2') { ?>
<div id="contactUsNoticeContent" class="content">
<?php
/**
 * require html_define for the contact_us page
 */
  require($define_page);
?>
</div>
<?php } ?>

<?php if ($messageStack->size('contact') > 0) echo $messageStack->output('contact'); ?>

<?php if (CONTACT_US_STORE_NAME_ADDRESS== '1') { ?>
<address><?php echo nl2br(STORE_NAME_ADDRESS); ?></address>
<?php } ?>


<fieldset id="contactUsForm">

<div class="contact-left">

<?php
// show dropdown if set
    if (CONTACT_US_LIST !=''){
?>
<label class="inputLabel" for="send-to"><?php echo SEND_TO_TEXT; ?></label>
<?php echo zen_draw_pull_down_menu('send_to',  $send_to_array, 0, 'id="send-to"') . '<span class="alert">' . ENTRY_REQUIRED_SYMBOL . '</span>'; ?>
<br class="clearBoth" />
<?php
    }
?>

<label class="inputLabel" for="contactname"><?php echo ENTRY_NAME; ?></label>
<?php echo zen_draw_input_field('contactname', $name, ' size="40" id="contactname"') . '<span class="alert">' . ENTRY_REQUIRED_SYMBOL . '</span>'; ?>
<br class="clearBoth" />

<label class="inputLabel" for="email-address"><?php echo ENTRY_EMAIL; ?></label>
<?php echo zen_draw_input_field('email', ($email_address), ' size="40" id="email-address"') . '<span class="alert">' . ENTRY_REQUIRED_SYMBOL . '</span>'; ?>
<br class="clearBoth" />

<label class="inputLabel" for="subject"><?php echo ENTRY_EMAIL_SUBJECT; ?></label>
<?php echo zen_draw_input_field('subject', $subject, ' size="40" id="subject"') . '<span class="alert">' . ENTRY_REQUIRED_SYMBOL . '</span>'; ?>
<br class="clearBoth" />

<div class="alert"><?php echo FORM_REQUIRED_INFORMATION; ?></div>

</div>

<div class="contact-right">
<label for="enquiry"><?php echo ENTRY_ENQUIRY . '<span class="alert">' . ENTRY_REQUIRED_SYMBOL . '</span>'; ?></label>
<?php echo zen_draw_textarea_field('enquiry', '30', '7', $enquiry, 'id="enquiry"'); ?>

<?php echo zen_draw_input_field('should_be_empty', '', ' size="40" id="CUAS" style="visibility:hidden; display:none;" autocomplete="off"'); ?>

</div>
</fieldset>

<div class="buttonRow forward"><?php echo zen_image_submit(BUTTON_IMAGE_SEND, BUTTON_SEND_ALT); ?></div>

<?php
  }
?>
</form>
</div>
28 Aug 2015, 3:19 AM
#59
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Contact Us not working, receiving alert messages even though all fields filled in

Try this for one:

Line 18 of includes/templates/winchester_black/templates/tpl_contact_us_default.php

change:

<?php echo zen_draw_form('contact_us', zen_href_link(FILENAME_CONTACT_US, 'action=send')); ?>

to:

<?php echo zen_draw_form('contact_us', zen_href_link(FILENAME_CONTACT_US, 'action=send', 'SSL')); ?>

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

28 Aug 2015, 3:32 AM
#60
blackeyed5 avatar

blackeyed5

New Zenner

Join Date:
May 2015
Location:
New Jersey
Posts:
59
Plugin Contributions:
0

Re: Contact Us not working, receiving alert messages even though all fields filled in

mc12345678:

Try this for one:

Line 18 of includes/templates/winchester_black/templates/tpl_contact_us_default.php

change:

<?php echo zen_draw_form('contact_us', zen_href_link(FILENAME_CONTACT_US, 'action=send')); ?>
> 
> to:
> ```
<?php echo zen_draw_form('contact_us', zen_href_link(FILENAME_CONTACT_US, 'action=send', 'SSL')); ?>

OH. MY. GOD.... That worked!!!!