Forums / Templates, Stylesheets, Page Layout / Removing default contact info on contact us page/adding form to page

Removing default contact info on contact us page/adding form to page

Locked

Views: 5,864

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
18 Mar 2009, 6:48 PM
#1
haggis0929 avatar

haggis0929

New Zenner

Join Date:
Feb 2009
Posts:
41
Plugin Contributions:
0

Removing default contact info on contact us page/adding form to page

I'm using Zen Cart v.1.3.8, with a customized template.

I have 2 things I'd like to do with the contact us page (viewable at http://www.brocktooldetroit.com/catalog/index.php?main_page=contact_us).

  1. I would like to remove the default contact information that appears at the top of the page. I have added that information in a nicer way lower in the page. I've searched the forums and gone through a bunch of files. I'm guessing that this might be either in a wrapper somewhere or in the css file, but I'm not sure where. I only want to remove it from this page - it's ok if it shows up by default in other places on the site (like during a purchase).

  2. Ideally, I would also like to add the google driving directions here, but the page doesn't like the html I added when I wanted that in there. Here's the code I had in the define_contact.php page (I removed it from the site for now, since it wasn't working):

<form action="http://maps.google.com/maps" method="get" target="_blank" class="style7 style7"> <div align="center"> <input type="hidden" name="go" value="1" /> <input type="hidden" name="daddr" value="31090 Industrial Road, Livonia, MI 48150" /> <input type="hidden" name="hl" value="en" /> <table width="100%" border="1" cellpadding="0" cellspacing="0" bordercolor="#000000"> <tr> <th scope="col"><table width="90" border="0" cellpadding="0" cellspacing="0" style="font: 11px Arial,Helvetica;"> <tr bgcolor="#FFFFFF"> <td style="font-weight: bold;"><div align="center"><img src="http://www.brocktooldetroit.com/images/google_maps_logo.jpg" width="118" height="60"></div></td> </tr> <tr bgcolor="#FFFFFF"> <td style="font-weight: bold;"><div align="left">FROM:</div></td> </tr> <tr bgcolor="#FFFFFF"> <td><div align="left"><strong>Enter Full Address<br> (street, city, state, zip): </strong></div></td> </tr> <tr bgcolor="#FFFFFF"> <td><input name="saddr" type="text" id="saddr" value="" size="20" maxlength="60" /></td> </tr> <tr bgcolor="#FFFFFF"> <td style="text-align: center; padding-top: 10px;"><input type="submit" name="dir" value="Get Directions" border="0" /></td> </tr> <input type="hidden" name="CID" value="lfddwid" /> </table></th> </tr> </table> </div> </form>

Any help, especially with #1, would be GREATLY appreciated.

Thanks!

18 Mar 2009, 9:13 PM
#2
rstevenson avatar

rstevenson

Totally Zenned

Join Date:
Nov 2006
Location:
Dartmouth, NS Canada
Posts:
2,400
Plugin Contributions:
0

Re: Removing default contact info on contact us page/adding form to page

  1. You can get rid of that by editing the file...
    /includes/templates/YOUR_TEMPLATE/templates/tpl_contact_us_default.php
    line 20: <address><?php echo nl2br(STORE_NAME_ADDRESS); ?></address>

Just commenting out that line, I think will do the trick.

Rob

Breakfast: the most important donut of the day.

25 Mar 2009, 1:45 AM
#3
haggis0929 avatar

haggis0929

New Zenner

Join Date:
Feb 2009
Posts:
41
Plugin Contributions:
0

Re: Removing default contact info on contact us page/adding form to page

Thanks for the tip. I actually found out how to delete the contact info at the top of the page, but couldn't figure out how to do the form.

I ended up just creating my own form outside of Zen Cart (MUCH easier). Ideally, though, I'd still like to get it into the Zen Cart files.

28 Dec 2009, 5:41 PM
#4
hipchickdesigns avatar

hipchickdesigns

New Zenner

Join Date:
Dec 2009
Posts:
11
Plugin Contributions:
0

Re: Removing default contact info on contact us page/adding form to page

There is a very simple way to turn this off without coding changes... simply go to the admin panel Configuration>Email Options>Contact Us - Show Store Name and Address.

This should solve the problem. :D