Forums / General Questions / Contact Us help...

Contact Us help...

Locked

Views: 1,780

Results 1 to 13 of 13
This thread is locked. New replies are disabled.
16 Feb 2008, 4:13 AM
#1
mcanes avatar

mcanes

Zen Follower

Join Date:
May 2007
Posts:
210
Plugin Contributions:
0

Contact Us help...

I was reviewing my contact us page and found that all the accounts I have setup to show in the drop-down list are appearing twice. You can see this behavior here:

http://74.52.161.178/~gridiron/index.php?main_page=contact_us

Does anyone know why this is happeing?

Thanks

16 Feb 2008, 5:51 AM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Contact Us help...

Would have to know more about the mod used and your implementation

Zen-Venom Get Bitten

16 Feb 2008, 1:54 PM
#3
mcanes avatar

mcanes

Zen Follower

Join Date:
May 2007
Posts:
210
Plugin Contributions:
0

Re: Contact Us help...

I am not sure I follow... The only mod used on the contact page was the Add Subject one, however I am getting the same behavior even if I replace the tpl_contact_us_default.php with the origional version.

Any other ideas on what could cause this?

16 Feb 2008, 4:23 PM
#4
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Contact Us help...

If there was a sql patch for this it might have been applied 2X

Zen-Venom Get Bitten

16 Feb 2008, 5:22 PM
#5
mcanes avatar

mcanes

Zen Follower

Join Date:
May 2007
Posts:
210
Plugin Contributions:
0

Re: Contact Us help...

Do you know what table the list of email addresses get stored in when you configure the "Set "Contact Us" Email Dropdown List" feature in the admin section under the Configuration --> Email Options section?

This way I can see if there is double entries in the DB table

16 Feb 2008, 6:22 PM
#6
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Contact Us help...

Start by removing all contacts at admin > config > E-Mail Options > Set "Contact Us" Email Dropdown List > make blank

Now there should be no drop list

Add two names and see if they appear only one or twice

Zen-Venom Get Bitten

16 Feb 2008, 7:39 PM
#7
mcanes avatar

mcanes

Zen Follower

Join Date:
May 2007
Posts:
210
Plugin Contributions:
0

Re: Contact Us help...

I did this and I still end up with duplicates... Do you know if these get stored in a table or config file so I can see if they are getting stored twice?

16 Feb 2008, 7:46 PM
#8
mcanes avatar

mcanes

Zen Follower

Join Date:
May 2007
Posts:
210
Plugin Contributions:
0

Re: Contact Us help...

I looked in the configuration table and there is only one entry in the field, but for some reason that entry is showing up twice on the UI in the drop-down list.

Any help is appreciated :frusty:

16 Feb 2008, 7:51 PM
#9
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Contact Us help...

MCanes:

I am not sure I follow... The only mod used on the contact page was the Add Subject one, however I am getting the same behavior even if I replace the tpl_contact_us_default.php with the origional version.

Any other ideas on what could cause this?

There's also a header_php.php file that goes with that mod's changes ... perhaps that's what's busting it.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

17 Feb 2008, 8:15 AM
#10
superprg avatar

superprg

Totally Zenned

Join Date:
Feb 2006
Location:
Chicago
Posts:
1,349
Plugin Contributions:
0

Re: Contact Us help...

Do you have the same code in
includes\templates\template_default\templates\tpl_contact_us_default.php

Line 56

?>
<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

Tutorials on Zen Cart
http://tutorials.zen-cart.com/index.php

advanced.programmer at gmail dot com
In love with Zen Cart!!

17 Feb 2008, 2:41 PM
#11
mcanes avatar

mcanes

Zen Follower

Join Date:
May 2007
Posts:
210
Plugin Contributions:
0

Re: Contact Us help...

Yep... It appears to be something with the header_php.php file that Dr. Byte refers to, but not sure what yet.

14 Apr 2008, 11:25 AM
#13
littleolemedesigns avatar

littleolemedesigns

Zen Follower

Join Date:
Dec 2007
Posts:
142
Plugin Contributions:
0

Re: Contact Us help...

I'm not real sure what's different.. but I got the code for this page from another store using this mod that I've worked on before, and it works...

You have to edit the part about half way down where it says Optionvalue1, optionvalue2, etc to what you want your options set to.

This is the code from
Includes --> Templates --> Template Default (or Custom if you have a custom template) --> Templates --> tpl_contact_us_default.php

<?php
/**
 * Page Template
 *
 * Loaded automatically by index.php?main_page=contact_us.<br />
 * Displays contact us page form.
 *
 * @package templateSystem
 * @copyright Copyright 2003-2006 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 4272 2006-08-26 03:10:49Z drbyte $
 */
?>
<div class="centerColumn" id="contactUsDefault">

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

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

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

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

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

<?php
  } else {
?>

<?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'); ?>

<fieldset id="contactUsForm">
<legend><?php echo HEADING_TITLE; ?></legend>
<div class="alert forward"><?php echo FORM_REQUIRED_INFORMATION; ?></div>
<br class="clearBoth" />

<?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, 'id=\"send-to\"') . '<span class="alert">' . ENTRY_REQUIRED_SYMBOL . '</span>'; ?>
<br class="clearBoth" />
<?php
    }
?>


<?php echo ($_POST['subject'])?>
<select name="subject">
<option value="">---------------------------Please Select a Subject---------------------------</option>
<option value="option1">Option 1 text</option>
<option value="option2">Option 2 text</option>
<option value="option3">Option 3 text</option>
<option value="option4">Other</option>
</select>
<?php echo '<span class="alert">' . ENTRY_REQUIRED_SYMBOL . '</span>'?>
<br /><br class="clearBoth" />



<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', ($error ? $_POST['email'] : $email), ' size="40" id="email-address"') . '<span class="alert">' . ENTRY_REQUIRED_SYMBOL . '</span>'; ?>
<br class="clearBoth" />




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

</fieldset>

<div class="buttonRow forward"><?php echo zen_image_submit(BUTTON_IMAGE_SEND, BUTTON_SEND_ALT); ?></div>
<div class="buttonRow back"><?php echo zen_back_link() . zen_image_button(BUTTON_IMAGE_BACK, BUTTON_BACK_ALT) . '</a>'; ?></div>
<?php
  }
?>
</form>
</div>