Post by Blackbeard » Thu Jan 05, 2012 1:16 am

Okay I know this is an old question but yet I haven't found a solution for the 1.5.1.3 version. So how do I delete the store's address field in Contact Us form?

Thanks!

Newbie

Posts

Joined
Sun Jan 01, 2012 10:53 pm

Post by sander76 » Thu Jan 05, 2012 1:41 am

Find this file:

/catalog/view/theme/default/template/information/contact.tpl

Comment the following line:

Code: Select all

<?php echo $address; ?></div>
Should be on line 14.

New member

Posts

Joined
Fri Dec 16, 2011 5:01 am

Post by Blackbeard » Thu Jan 05, 2012 2:22 am

But what if I'm using a custom template? I'm using yoocolor.

Newbie

Posts

Joined
Sun Jan 01, 2012 10:53 pm

Post by sander76 » Thu Jan 05, 2012 2:40 am

I suppose the same code will be in other template files as well. Otherwise the address wouldn't be shown. Have you searched the file for this text?

New member

Posts

Joined
Fri Dec 16, 2011 5:01 am

Post by Blackbeard » Thu Jan 05, 2012 5:58 pm

Yes there is such line but nothing happens when I delete it :( Or I don't quite understand what 'comment' means in this case. Sorry I'm very new at all the programming stuff.

Newbie

Posts

Joined
Sun Jan 01, 2012 10:53 pm

Post by fido-x » Thu Jan 05, 2012 6:06 pm

Change:

Code: Select all

<?php echo $address; ?></div>
to:

Code: Select all

<?php //echo $address; ?></div>

Image
Modules for OpenCart 2.3.0.2
Homepage Module [Free - since OpenCart 0.7.7]
Multistore Extensions
Store Manager Multi-Vendor/Multi-Store management tool

If you're not living on the edge ... you're taking up too much space!


User avatar
Expert Member

Posts

Joined
Sat Jun 28, 2008 1:09 am
Location - Tasmania, Australia

Post by Blackbeard » Thu Jan 05, 2012 6:25 pm

Did that, same problem remains. :(
You can check that on my site.
http://playys.com/index.php?route=information/contact

Newbie

Posts

Joined
Sun Jan 01, 2012 10:53 pm

Post by fido-x » Thu Jan 05, 2012 6:44 pm

Aah, now that helps.

In your template file (catalog/view/theme/default/template/information/contact.tpl), find the following (lines 12-14):

Code: Select all

<div class="content"><div class="left"><b><?php echo $text_address; ?></b><br />
  <?php echo $store; ?><br />
  <?php echo $address; ?></div>
and replace with:

Code: Select all

<div class="content"> 
That will get rid of the whole "Address" section at the top of your contact form.

Image
Modules for OpenCart 2.3.0.2
Homepage Module [Free - since OpenCart 0.7.7]
Multistore Extensions
Store Manager Multi-Vendor/Multi-Store management tool

If you're not living on the edge ... you're taking up too much space!


User avatar
Expert Member

Posts

Joined
Sat Jun 28, 2008 1:09 am
Location - Tasmania, Australia

Post by Blackbeard » Thu Jan 05, 2012 6:52 pm

Thanks fido, now the address is finally gone. :) But how can I remove the "address" headline ("mūsų adresas" in my site) ?

Newbie

Posts

Joined
Sun Jan 01, 2012 10:53 pm

Post by fido-x » Thu Jan 05, 2012 7:03 pm

That would be line 10:

Code: Select all

<h2><?php echo $text_location; ?></h2>

Image
Modules for OpenCart 2.3.0.2
Homepage Module [Free - since OpenCart 0.7.7]
Multistore Extensions
Store Manager Multi-Vendor/Multi-Store management tool

If you're not living on the edge ... you're taking up too much space!


User avatar
Expert Member

Posts

Joined
Sat Jun 28, 2008 1:09 am
Location - Tasmania, Australia

Post by Blackbeard » Thu Jan 05, 2012 10:33 pm

Thanks so much! Finally got it :}

Newbie

Posts

Joined
Sun Jan 01, 2012 10:53 pm

Post by TechPNC » Tue Jul 31, 2012 11:10 pm

In OC 1.5.3.1 that solution leaves a large blank space. To remove The entire Address / Tel No section:

/catalog/view/theme/default/template/information/contact.tpl

Remove / comment out rows 10 - 25:

<h2><?php echo $text_location; ?></h2>
<div class="contact-info">
<div class="content">
<div class="right">
<?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>

Newbie

Posts

Joined
Tue Jul 31, 2012 11:01 pm
Who is online

Users browsing this forum: No registered users and 65 guests