Post by bluefall » Thu Feb 17, 2011 8:04 am

Hi,

I'd like to add the 'E-Mail Address' information on the 'Contact Us' page like this pic below, how can I modify it?

Thanks!

Attachments

contactus.png

contactus.png (14.17 KiB) Viewed 1152 times


Newbie

Posts

Joined
Wed Feb 16, 2011 3:48 am

Post by SteveSherry » Fri Feb 18, 2011 8:15 am

You need to edit this file:
...../catalog/view/theme/YOUR_THEME/template/information/contact.tpl

My Website ¦ Summer Madness Special Offer ¦


Active Member

Posts

Joined
Thu Apr 08, 2010 7:47 am
Location - Wirral, UK

Post by bluefall » Sat Feb 19, 2011 2:53 am

SteveSherry wrote:You need to edit this file:
...../catalog/view/theme/YOUR_THEME/template/information/contact.tpl
I don't know anything about php, could you tell me what sentence I should add to that file so it will show E-mail information on the contact us page?

Thanks again!

Newbie

Posts

Joined
Wed Feb 16, 2011 3:48 am

Post by philbydevil » Sun Feb 20, 2011 4:01 am

I just did this after seeing this post (I thought my email address was already shown).

FIND:

Code: Select all

          <div style="float: right; display: inline-block; width: 50%;">
            <?php if ($telephone) { ?>
            <b><?php echo $text_telephone; ?></b><br />
            <?php echo $telephone; ?><br />
            <br />
            <?php } ?>
            <?php if ($fax) { ?>
            <b><?php echo $text_fax; ?></b><br />
            <?php echo $fax; ?>
            <?php } ?>
CHANGE TO:

Code: Select all

          <div style="float: right; display: inline-block; width: 50%;">
            <?php if ($telephone) { ?>
            <b><?php echo $text_telephone; ?></b><br />
            <?php echo $telephone; ?><br />
            <br />
            <?php } ?>
            <?php if ($fax) { ?>
            <b><?php echo $text_fax; ?></b><br />
            <?php echo $fax; ?>
            <?php } ?>
            <br />
<b>Email:</b><br />
            <a href="mailto:EMAIL@YOURSITE.com?subject=Inquiry%20from%20website">EMAIL@YOURSITE.com</a><br />
          </div>
        </div>
      </div>
So this is just lazily hardcoded in, but it should work just fine.

I heart cmd-f, cmd-c, cmd-v, cmd-z + vQmod.
My favourite page...
v1.5.4.1


User avatar
Active Member

Posts

Joined
Fri Dec 03, 2010 5:20 am

Post by bluefall » Tue Feb 22, 2011 3:29 am

philbydevil wrote:I just did this after seeing this post (I thought my email address was already shown).

FIND:

Code: Select all

          <div style="float: right; display: inline-block; width: 50%;">
            <?php if ($telephone) { ?>
            <b><?php echo $text_telephone; ?></b><br />
            <?php echo $telephone; ?><br />
            <br />
            <?php } ?>
            <?php if ($fax) { ?>
            <b><?php echo $text_fax; ?></b><br />
            <?php echo $fax; ?>
            <?php } ?>
CHANGE TO:

Code: Select all

          <div style="float: right; display: inline-block; width: 50%;">
            <?php if ($telephone) { ?>
            <b><?php echo $text_telephone; ?></b><br />
            <?php echo $telephone; ?><br />
            <br />
            <?php } ?>
            <?php if ($fax) { ?>
            <b><?php echo $text_fax; ?></b><br />
            <?php echo $fax; ?>
            <?php } ?>
            <br />
<b>Email:</b><br />
            <a href="mailto:EMAIL@YOURSITE.com?subject=Inquiry%20from%20website">EMAIL@YOURSITE.com</a><br />
          </div>
        </div>
      </div>
So this is just lazily hardcoded in, but it should work just fine.
I'll try it.

Thank you very much, philbydevil!

Newbie

Posts

Joined
Wed Feb 16, 2011 3:48 am
Who is online

Users browsing this forum: No registered users and 36 guests