Forums / Templates, Stylesheets, Page Layout / Display multiple store addresses on contact-us page?

Display multiple store addresses on contact-us page?

Views: 895

Results 1 to 8 of 8
16 Jan 2013, 4:46 PM
#1
shopville avatar

shopville

Zen Follower

Join Date:
Aug 2012
Posts:
331
Plugin Contributions:
0

Display multiple store addresses on contact-us page?

Hello,

I tried searching the forums but didn't find a thread about this,

Mt store has two locations, i'm trying to figure how i can have these two addresses displayed on the contact us page side by side as the address info isn't edited with the define pages editor

Thanks

16 Jan 2013, 5:19 PM
#2
ahhs9162 avatar

ahhs9162

New Zenner

Join Date:
Aug 2012
Location:
North Carolina
Posts:
28
Plugin Contributions:
0

Re: Display multiple store addresses on contact-us page?

I don't know if it's possble to add another address in the 'contact us' page in admin area...

But, you may want to modify a template file manually.

/includes/templates/template_default/templates/tpl_contact_us_default.php

around line 50 after this code

<?php
/**
 * require html_define for the contact_us page
 */
  require($define_page);
?>
</div>
<?php } ?>

"your address information will be here"

This will show your another address botton of your first address.

I don't know if you changed contact us page before, but if not it should be working.

Wholesale Jewelry Store

http://pnytrading.net/

14 Feb 2013, 7:00 PM
#3
shopville avatar

shopville

Zen Follower

Join Date:
Aug 2012
Posts:
331
Plugin Contributions:
0

Re: Display multiple store addresses on contact-us page?

ahhs9162:

I don't know if it's possble to add another address in the 'contact us' page in admin area...

But, you may want to modify a template file manually.

/includes/templates/template_default/templates/tpl_contact_us_default.php

around line 50 after this code

<?php /** * require html_define for the contact_us page */ require($define_page); ?> </div> <?php } ?>

"your address information will be here"

> 
> This will show your another address botton of your first address.
> 
> I don't know if you changed contact us page before, but if not it should be working.

It would be after: 
<?php if (CONTACT_US_STORE_NAME_ADDRESS== '1') { ?> <address><?php echo nl2br(STORE_NAME_ADDRESS); ?></address> <?php } ?> ```

But it will be displayed after the defualt store address, i want it to be displayed side by side.

15 Feb 2013, 4:07 PM
#4
shopville avatar

shopville

Zen Follower

Join Date:
Aug 2012
Posts:
331
Plugin Contributions:
0

Re: Display multiple store addresses on contact-us page?

I found a solution,

i removed:

<?php if (CONTACT_US_STORE_NAME_ADDRESS== '1') { ?> 
<address><?php echo nl2br(STORE_NAME_ADDRESS); ?></address> 
<?php } ?>

from the /includes/templates/template_default/templates/tpl_contact_us_default.php

And inserted both addresses in a table through the define contact us page

15 Feb 2013, 4:35 PM
#5
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: Display multiple store addresses on contact-us page?

Better to NOT REMOVE CODE, but to COMMENT IT OUT to prevent it from firing.

20 years a Zencart User

15 Feb 2013, 4:36 PM
#6
shopville avatar

shopville

Zen Follower

Join Date:
Aug 2012
Posts:
331
Plugin Contributions:
0

Re: Display multiple store addresses on contact-us page?

That's right!

Will do it right now!

Thanks

15 Feb 2013, 4:37 PM
#7
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: Display multiple store addresses on contact-us page?

Additionally, you have edited a CORE file.

You should rather place a COPY of that file into:
/includes/templates/YOUR_CUSTOM_TEMPLATE/templates/tpl_contact_us_default.php

... and make edits to the COPY.

In this way, you follow the protocol of OVER-RIDES.

20 years a Zencart User

15 Feb 2013, 4:39 PM
#8
shopville avatar

shopville

Zen Follower

Join Date:
Aug 2012
Posts:
331
Plugin Contributions:
0

Re: Display multiple store addresses on contact-us page?

Oops, how do i comment it out?