Zen Cart Logo
Forums / General Questions / How to remove pre-filled email address on Contact Us form?

How to remove pre-filled email address on Contact Us form?

Views: 4,921

Results 1 to 20 of 24
23 Jan 2012, 5:40 PM
#1
jostar avatar

jostar

New Zenner

Join Date:
Jan 2011
Posts:
22
Plugin Contributions:
0

How to remove pre-filled email address on Contact Us form?

Hi,

I'm trying to remove email address that is pre-filled by Zen Cart on Contact Us form.

I searched the internet and this forum for hours but couldn't find the solution. :no:

Following is the exact page I'm talking about.
"https://www.jostaronline.com/contact_us.html"

I went in to "/includes/templates/template_default/templates" and tried to edit tpl_contact_us_default.php, I had no idea what to do.

Please help Zen Cart gurus!!! :wink:

Jostar

23 Jan 2012, 5:55 PM
#2
afo avatar

afo

Totally Zenned

Join Date:
Aug 2004
Location:
New York City
Posts:
6,800
Plugin Contributions:
0

Re: How to remove pre-filled email address on Contact Us form?

What are you trying to accomplish by removing the prefilled email address?

23 Jan 2012, 6:12 PM
#3
drbyte avatar

drbyte

Sensei

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

Re: How to remove pre-filled email address on Contact Us form?

You've done something, either on your own with customizing, or by adding addons, that has changed the normal operation of the page.

Go through and remove anything that doesn't match original code, until it fixes your problem. http://www.zen-cart.com/wiki/index.php/Troubleshoot_-_Diagnosing_Obscure_Issues

23 Jan 2012, 6:21 PM
#4
jostar avatar

jostar

New Zenner

Join Date:
Jan 2011
Posts:
22
Plugin Contributions:
0

Re: How to remove pre-filled email address on Contact Us form?

DrByte:

You've done something, either on your own with customizing, or by adding addons, that has changed the normal operation of the page.

Go through and remove anything that doesn't match original code, until it fixes your problem. http://www.zen-cart.com/wiki/index.php/Troubleshoot_-_Diagnosing_Obscure_Issues

Thanks Doc!

One more thing then!
Do you know a specific file or a directory I should go through and match with original Zen Cart that might have affected the contact form?

23 Jan 2012, 6:22 PM
#5
jostar avatar

jostar

New Zenner

Join Date:
Jan 2011
Posts:
22
Plugin Contributions:
0

Re: How to remove pre-filled email address on Contact Us form?

afo:

What are you trying to accomplish by removing the prefilled email address?

I want to leave the email field black so that the visitors of my website can write their email. Some visitors just use the pre-filled email and I have no way to reply back to them since they used "my email address".

23 Jan 2012, 6:35 PM
#6
drbyte avatar

drbyte

Sensei

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

Re: How to remove pre-filled email address on Contact Us form?

A default install of Zen Cart DOES NOT fill in that field using your store's email address. It will fill in the customer's email address if they're logged in to their account. If they're not logged in, that field will be blank.

Compare everything under /includes/ and all its subfolders.

23 Jan 2012, 6:44 PM
#7
jostar avatar

jostar

New Zenner

Join Date:
Jan 2011
Posts:
22
Plugin Contributions:
0

Re: How to remove pre-filled email address on Contact Us form?

DrByte:

A default install of Zen Cart DOES NOT fill in that field using your store's email address. It will fill in the customer's email address if they're logged in to their account. If they're not logged in, that field will be blank.

Compare everything under /includes/ and all its subfolders.

Wow. That will be a hack a lot of job. But if that's the only way, I should do so. :)

Thanks again.

23 Jan 2012, 7:03 PM
#8
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: How to remove pre-filled email address on Contact Us form?

Have you added any additional meta headers to your html_header.php file - such as OPENGRAPH headers...

If so, this is lilely to be your problem

23 Jan 2012, 7:04 PM
#9
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: How to remove pre-filled email address on Contact Us form?

Are you sure that it isn't just your browser that's filling that field in ?

23 Jan 2012, 7:16 PM
#10
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: How to remove pre-filled email address on Contact Us form?

Here's a MAJOR error:

<meta property="og:url" content="http://www.jostaronline.com/contact_us.html?zenid=1c4cb4b3e73592bbef1d31d0cca6f967" />

Who put this in for you?

They should really be more careful !!!

NEVER put the zenid into a URL !!!

I think your <og: stuff is what is causing the problem...

23 Jan 2012, 7:17 PM
#11
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: How to remove pre-filled email address on Contact Us form?

AND you are adding to your problems by using URL re-writers...

Oh dear... FAR too much tinkering going on.

If I were you I'd get back to my developer and demand a refund.

23 Jan 2012, 7:23 PM
#12
rescoccc avatar

rescoccc

Totally Zenned

Join Date:
May 2010
Location:
WA State
Posts:
1,700
Plugin Contributions:
2

Re: How to remove pre-filled email address on Contact Us form?

stevesh:

Are you sure that it isn't just your browser that's filling that field in ?

It's filling it in for me.

23 Jan 2012, 7:26 PM
#13
drbyte avatar

drbyte

Sensei

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

Re: How to remove pre-filled email address on Contact Us form?

Ya, me too.

It's the customization that's causing the problem.

Someone else has reported the same thing previously, and IIRC it was caused by the same sort of nonsensical additional meta crap added to the template.

But, it seems evident that the entire site has been mangled in weird ways, so might be additional contributing factors.

23 Jan 2012, 7:29 PM
#14
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: How to remove pre-filled email address on Contact Us form?

DrByte:

Someone else has reported the same thing previously...

I recall it being all that opengraph nonsense... hence my earlier reply, but there seems to be a lot of wierd stuff coing on there.

Again... get a refund from your developer... :D

23 Jan 2012, 7:35 PM
#15
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: How to remove pre-filled email address on Contact Us form?

Good way to check is to revert to CLASSIC template... see if this causes the same error...

If not, the fault lies with your custom template

23 Jan 2012, 10:03 PM
#16
jostar avatar

jostar

New Zenner

Join Date:
Jan 2011
Posts:
22
Plugin Contributions:
0

Re: How to remove pre-filled email address on Contact Us form?

Hollllly~ cow~

You guys are awesome.
I wish I could ask for the "full refund" but the problem is I'm the developer. Hahaha.

It's my first experience with PHP/CSS website I only had a few knowledge of Flash and HTML tags. Anyway it is apparent that some modifications to the template I did and MOD's I installed are causing problems.

I will definitely look into the related files and template and get back to the thread.

Thanks tons, Zen Gurus!!!

Jostar

23 Jan 2012, 10:14 PM
#17
jostar avatar

jostar

New Zenner

Join Date:
Jan 2011
Posts:
22
Plugin Contributions:
0

Re: How to remove pre-filled email address on Contact Us form?

schoolboy:

Here's a MAJOR error:

<meta property="og:url" content="http://www.jostaronline.com/contact_us.html?zenid=1c4cb4b3e73592bbef1d31d0cca6f967" />

Who put this in for you?

They should really be more careful !!!

NEVER put the zenid into a URL !!!

I think your <og: stuff is what is causing the problem...

Hi schoolboy,

This is a part of coding for a MOD called "Google Plus One (+1), Facebook Send and Twitter Follow" in the html_header.php in side /public_html/includes/templates/[CUSTOM TEMPLATE]/common.

Following is the original codes:

<!-- start of Facebook AutoOpenGraph meta tags --> <meta property="og:title" content="<?php echo $depends; ?>" /> <meta property="fb:admins" content="302343939805037"/> <meta property="og:type" content="<?php echo $product_type; ?>" /> **<meta property="og:url" content="<?php echo $prod_url; ?>" /> **<meta property="og:image" content="<?php echo $store_url . '/' . $img; ?>" /> <meta property="og:description" content="<?php echo META_TAG_DESCRIPTION; ?>" /> <meta property="og:site_name" content="<?php echo $store_name; ?>" /> <?php if($use_addr){ echo '<meta property="og:street-address" content="'.$street.'" />'."\n"; echo '<meta property="og:locality" content="'.$city.'" />'."\n"; echo '<meta property="og:region" content="'.$state.'" />'."\n"; echo '<meta property="og:postal-code" content="'.$zip.'" />'."\n"; echo '<meta property="og:country-name" content="'.$country.'" />'."\n"; } if($use_email){ echo '<meta property="og:email" content="'.$email_address.'" />'."\n"; } if($use_phone){ echo '<meta property="og:phone_number" content="'.$phone_number.'" />'."\n"; } ?> <!-- end of Facebook AutoOpenGraph meta tags -->

I'm not sure how ZENID went in there.
To be honest, PHP is way hard for me.

I found the "og:url" in another template folder done by a "Professional" and instead of "<?php echo $prod_url; ?>",
"<?php echo $canonicalLink; ?>" is there.
So I tried switching them but it did not work out and caused problem with SSL instead.

Am I missing something else? :huh:

23 Jan 2012, 10:18 PM
#18
jostar avatar

jostar

New Zenner

Join Date:
Jan 2011
Posts:
22
Plugin Contributions:
0

Re: How to remove pre-filled email address on Contact Us form?

schoolboy:

AND you are adding to your problems by using URL re-writers...

Oh dear... FAR too much tinkering going on.

If I were you I'd get back to my developer and demand a refund.

When you say URL RE-WRITER, do you mean those MODs called SEO optimized URL stuff? Should I remove the MOD? I thought such MOD is good for promoting website traffic. Now I am very confused.

23 Jan 2012, 10:31 PM
#19
jostar avatar

jostar

New Zenner

Join Date:
Jan 2011
Posts:
22
Plugin Contributions:
0

Re: How to remove pre-filled email address on Contact Us form?

Okay,

I just renamed html_header.php file that was being used to html_header.phpxxx and started to use the old html_header.php before installing the Google+/Face/Twitter MOD.
You know what?
The pre-filled email on the contact page is gone! Completely.
I will use the Winmerge and figure out what was causing the problem.

23 Jan 2012, 10:42 PM
#20
rescoccc avatar

rescoccc

Totally Zenned

Join Date:
May 2010
Location:
WA State
Posts:
1,700
Plugin Contributions:
2

Re: How to remove pre-filled email address on Contact Us form?

jostar:

When you say URL RE-WRITER, do you mean those MODs called SEO optimized URL stuff? Should I remove the MOD? I thought such MOD is good for promoting website traffic. Now I am very confused.

Yes, that's what he's referring to. It's a fallacy that these URL re-write mods help with search engine ranking. Modern search engines index dynamic content just fine.