Forums / General Questions / Help - can't find where this is coming from

Help - can't find where this is coming from

Views: 216

Results 1 to 7 of 7
9 Jul 2026, 11:08 AM
#1
spminis avatar

spminis

Zen Follower

Join Date:
Feb 2015
Location:
USA
Posts:
194
Plugin Contributions:
0

Help - can't find where this is coming from

zc 2.2
On my contact us page it's prefilling "main_page" in the full name box. I had changed this file to remove the requirement for a phone number and that worked. But now I can't figure out where the text is coming from in order to remove it.
Thanks

https://spminiatures.com/teststore/index.php?main_page=contact_us

9 Jul 2026, 11:12 AM
#2
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,729
Plugin Contributions:
56

Re: Help - can't find where this is coming from

Last item in the Known Bugs in 2.2 thread:
https://www.zen-cart.com/showthread.php/231058-Known-bugs-in-2-2-x

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

9 Jul 2026, 11:55 AM
#4
spminis avatar

spminis

Zen Follower

Join Date:
Feb 2015
Location:
USA
Posts:
194
Plugin Contributions:
0

Re: Help - can't find where this is coming from

THANK YOU!!! I never would have found that.

27 Jul 2026, 11:13 AM
#5
schoolboy avatar

schoolboy

Totally Zenned

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

Re: Help - can't find where this is coming from

I applied the fix but my Contact Us page is showing "Contact Us" in the name field.

20 years a Zencart User

28 Jul 2026, 10:34 AM
#6
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,119
Plugin Contributions:
56

Re: Help - can't find where this is coming from

schoolboy:

I applied the fix but my Contact Us page is showing "Contact Us" in the name field.
You've got some additional code that's setting the $name variable that's used by the contact_us page's form, noting that the same variable name is used on the ask_a_question page.

You'll need to search all storefront .php files for the additional code that's making that assignment or, as was the correction for the core code, using that variable name as a key/value in a foreach loop.

17 Aug 2026, 8:48 PM
#7
bumba000 avatar

bumba000

Totally Zenned

Join Date:
Feb 2007
Location:
Pennsylvania
Posts:
859
Plugin Contributions:
0

Re: Help - can't find where this is coming from

Three new zc2.2.2 sites now and it just leaves me wondering why this is..

I resolved the issue in includes/modules/pages/contact_us/header_php.php

line 21 added the following

/*main_page name fix. WTH is $name set = to "main_page"?*/
if(isset($name) && $name =='main_page'){$name = '';}

The application_top.php fix works great as well, and probably resolves more than just the one issue. Changed my fix to official fix. ;)