Remove blank drop down menu?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
chrismaddox3d
Forum Newbie
Posts: 17
Joined: Fri Sep 24, 2010 5:22 pm

Remove blank drop down menu?

Post by chrismaddox3d »

I have a blank drop down menu on my website i wanna remove,
Least want to comment it out,
Not sure how to find the php file and code,
Looked at the view source and only came up with this code,
here is a link to my site http://youniverseonline.com
Will post a image and circle the drop down menu so everyone can see what i am talking about,
Hope someone can help,
Thanks,

Code: Select all

<select size="1" onchange="this.form.submit();" name="manufacturers_id" gtbfieldid="6">
</select>
Image
User avatar
twinedev
Forum Regular
Posts: 984
Joined: Tue Sep 28, 2010 11:41 am
Location: Columbus, Ohio

Re: Remove blank drop down menu?

Post by twinedev »

Looks to be a drop down where you can filter by Manufacturer. I'm not that familiar with Zen Cart, so I would start by search all the source code for name="manufacturers_id" to find out where it is generating this code. "Search In Files" is a great tool :-)

-Greg
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Re: Remove blank drop down menu?

Post by John Cartwright »

Most IDE's these days will allow you to specify to search recursively over a directory. However, I can probably narrow it down to a header template file located somewhere in the includes/templates/theme346/ directory.

The entire code you want to comment is

Code: Select all

<div class="manufacturers">

											<!-- ========== MANUFACTURERS ========== -->
												<form name="manufacturers_form" action="http://youniverseonline.com/index.php?main_page=index" method="get">													<div>
														<input name="main_page" value="index" type="hidden"><select name="manufacturers_id" onchange="this.form.submit();" size="1">
</select>
													</div>
												</form>
											
											<!-- =================================== -->
										</div>
chrismaddox3d
Forum Newbie
Posts: 17
Joined: Fri Sep 24, 2010 5:22 pm

Re: Remove blank drop down menu?

Post by chrismaddox3d »

Is there such a tool i can scan all my php files to search a certain line of code,
I mean with out having to open them all,
This site has tons of php files,
Would i need to open each one and put key word in like i have done in the past and search,
Thanks,
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Re: Remove blank drop down menu?

Post by John Cartwright »

One was already recommended, and I most certainly narrowed it down to just a few files to look in.

I use PHP Designer and Adobe Dreamweaver (both have folder search capabilities).
chrismaddox3d
Forum Newbie
Posts: 17
Joined: Fri Sep 24, 2010 5:22 pm

Re: Remove blank drop down menu?

Post by chrismaddox3d »

I own Dream Weaver CS4,
never knew it had a folder search capabilities,
where might that be located,
I will dig through some more php files as well,
Thanks for all the help,
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Re: Remove blank drop down menu?

Post by John Cartwright »

Under the normal search utility (Ctrl + F)
chrismaddox3d
Forum Newbie
Posts: 17
Joined: Fri Sep 24, 2010 5:22 pm

Re: Remove blank drop down menu?

Post by chrismaddox3d »

That is an amazing tool,
Never knew of it,
This can save me tons of time now,
You guys are the best,
Thanks,
Post Reply