Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / customize Contact Us page?

customize Contact Us page?

Locked

Views: 2,525

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
1 Sep 2007, 6:23 AM
#1
khopek avatar

khopek

Totally Zenned

Join Date:
Aug 2006
Location:
portlandish, oregon
Posts:
795
Plugin Contributions:
0

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...:blink:

1 Sep 2007, 2:30 PM
#2
rstevenson avatar

rstevenson

Totally Zenned

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

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

</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

1 Sep 2007, 7:09 PM
#3
bazzxr avatar

bazzxr

New Zenner

Join Date:
Aug 2007
Posts:
10
Plugin Contributions:
0

Re: customize Contact Us page?

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

19 Oct 2007, 9:56 PM
#4
sneader avatar

sneader

New Zenner

Join Date:
Mar 2007
Posts:
20
Plugin Contributions:
0

Re: customize Contact Us page?

rstevenson:

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