Post by lotus » Sun Jul 18, 2010 9:45 pm

Hi,

Another little adjustment I am having trouble finding how to change.

How do I remove the address and my phone number from the contact form which seems to get picked up from the store information?

Thanks

New member

Posts

Joined
Fri Jul 16, 2010 9:50 pm

Post by JAY6390 » Sun Jul 18, 2010 10:34 pm

open

Code: Select all

/catalog/view/theme/default/template/information/contact.tpl
and remove the following

Code: Select all

      <div class="content">
        <div style="display: inline-block; width: 100%;">
          <div style="float: left; display: inline-block; width: 50%;"><b><?php echo $text_address; ?></b><br />
            <?php echo $store; ?><br />
            <?php echo $address; ?></div>
          <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 } ?>
          </div>
        </div>
      </div>

Image


User avatar
Guru Member

Posts

Joined
Wed May 26, 2010 11:47 pm
Location - United Kingdom

Post by lotus » Sun Jul 18, 2010 10:59 pm

Thanks heaps Jay. You guys are great help for a new comer..much appreciated.

New member

Posts

Joined
Fri Jul 16, 2010 9:50 pm

Post by JAY6390 » Sun Jul 18, 2010 11:07 pm

No problem :)

Image


User avatar
Guru Member

Posts

Joined
Wed May 26, 2010 11:47 pm
Location - United Kingdom

Post by buckmajor » Thu Jul 29, 2010 12:09 pm

Nice! So that's how you remove the address from the contact us page.

I have my own custom theme, and was wondering if I remove the code from the default theme or my custom theme?

Thanks

http://www.dmaireroa.com


New member

Posts

Joined
Tue May 04, 2010 11:29 am
Location - Brisbane

Post by JAY6390 » Thu Jul 29, 2010 4:09 pm

Try your custom theme first, if its not there, then do so for your default theme

Image


User avatar
Guru Member

Posts

Joined
Wed May 26, 2010 11:47 pm
Location - United Kingdom

Post by buckmajor » Thu Jul 29, 2010 11:14 pm

Sweet! Thanks JAY, it works ;)

http://www.dmaireroa.com


New member

Posts

Joined
Tue May 04, 2010 11:29 am
Location - Brisbane

Post by shadowcast » Wed Oct 27, 2010 9:12 pm

hi, how can i make leaving phone contact a optional thing?

New member

Posts

Joined
Mon Sep 20, 2010 12:04 am

Post by dexter786 » Sat Dec 17, 2011 4:38 pm

thnx also from mine side

contact us is now perfect :D

Newbie

Posts

Joined
Sun Dec 11, 2011 11:35 pm

Post by Anonym33 » Tue May 26, 2015 2:36 am

bumb this, as MY THREAD IS NO GETTING APPROVED for over 2 days, I'll post here. I want to remove telephone and postal code from checkout as guest. I'm using opencart 2.0.2.0 (If this post won't be posted or removed, you just lost a customer opencart ...I was about to purchase many extensions.)

Newbie

Posts

Joined
Sun May 24, 2015 12:45 am

Post by nudylady » Tue Jun 30, 2015 11:36 am

remove phone number worked. thx

New member

Posts

Joined
Sun Feb 19, 2012 12:14 am
Who is online

Users browsing this forum: Google [Bot] and 46 guests