Results 1 to 4 of 4
  1. #1
    Join Date
    Feb 2009
    Posts
    41
    Plugin Contributions
    0

    Default 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/cata...age=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!

  2. #2
    Join Date
    Nov 2006
    Location
    Dartmouth, NS Canada
    Posts
    2,378
    Plugin Contributions
    0

    Default 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

  3. #3
    Join Date
    Feb 2009
    Posts
    41
    Plugin Contributions
    0

    Default 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.

  4. #4
    Join Date
    Dec 2009
    Posts
    11
    Plugin Contributions
    0

    Default 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.

 

 

Similar Threads

  1. Contact Form "From" field on Contact Us page
    By manutd98 in forum Customization from the Admin
    Replies: 8
    Last Post: 7 Nov 2019, 11:41 PM
  2. Contact US page + One more Contact FORM :blink:
    By Orange Wacko in forum Managing Customers and Orders
    Replies: 0
    Last Post: 21 Jul 2009, 10:29 PM
  3. customizing default contact form
    By malhyp in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 27 Dec 2008, 08:04 AM
  4. Replies: 6
    Last Post: 31 Oct 2008, 04:31 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR