Results 1 to 4 of 4
  1. #1
    Join Date
    Aug 2006
    Location
    portlandish, oregon
    Posts
    799
    Plugin Contributions
    0

    Default customize Contact Us page?

    Is it possible to change how the Contact Us page looks?

    Currently the store address and phone number display above the Contact us form and I would like them to be side by side instead.

    I'm not sure what file I need to accomplish this or if this would be easy for me to do not knowing any php...

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

    Default Re: customize Contact Us page?

    In your zen cart folders, find includes / templates / template_default / templates / tpl_contact_us_default.php. Make a copy of this file using the overrides folder system and work with your copy. You can always put back the original if you mess up.

    You'll see that the various items on the page are created in a certain order there. You can move things around within that file to affect what is drawn first on the page, and second and so on. Then you go to your stylesheet and adjust various settings there to suit what you're after.

    It's easier if you already know php, but you're not going to be writing or modifying any php, so it's not vital to know it. Just read the file carefully so you understand where chunks of code begin and end and then move those chunks all together.

    For example, it looks to me as if the address info is defined in this block, near the top of the file...
    PHP Code:
    <?php if (CONTACT_US_STORE_NAME_ADDRESS== '1') { ?>
    <address><?php echo nl2br(STORE_NAME_ADDRESS); ?></address>
    <?php ?>
    If you move that down the file -- for example, below the line...
    PHP Code:
    </fieldset
    ...you'll see that the address/phone number block in your Contact Us page drops down to just above the buttons at the bottom of the page.

    HTH

    Rob

  3. #3
    Join Date
    Aug 2007
    Posts
    10
    Plugin Contributions
    0

    Default Re: customize Contact Us page?

    Just applied these changes to my site and it looks a whole lot better

  4. #4
    Join Date
    Mar 2007
    Posts
    20
    Plugin Contributions
    0

    Default Re: customize Contact Us page?

    Quote Originally Posted by rstevenson View Post
    In your zen cart folders, find includes / templates / template_default / templates / tpl_contact_us_default.php. Make a copy of this file using the overrides folder system and work with your copy.
    Maybe I'm doing something wrong, but it doesn't appear that the override system works for templates?

    - Scott

 

 

Similar Threads

  1. Removing default contact info on contact us page/adding form to page
    By haggis0929 in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 28 Dec 2009, 06:41 PM
  2. customize contact us form text color?
    By hooai12 in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 29 Nov 2009, 11:34 AM
  3. How to customize Contact us Page with CSS?
    By hooai12 in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 11 Nov 2009, 09:10 AM
  4. Customize the contact us page
    By 1a4 in forum General Questions
    Replies: 1
    Last Post: 15 Mar 2007, 06:26 PM
  5. Replies: 2
    Last Post: 13 Jul 2006, 11:25 PM

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