Forums / Templates, Stylesheets, Page Layout / hide address on contact page

hide address on contact page

Locked

Views: 8,824

Results 1 to 15 of 15
This thread is locked. New replies are disabled.
24 Jan 2007, 10:26 PM
#1
hanafoo avatar

hanafoo

New Zenner

Join Date:
Apr 2006
Posts:
23
Plugin Contributions:
0

hide address on contact page

hello,

is it possible to hide my home address on the 'contact us' page? If i remove it in the admin it doesnt show up during the checkout process when someone pays via cheque and needs my mailing address. I'm not quite sure what to do :(

thanks

24 Jan 2007, 11:19 PM
#2
shackle avatar

shackle

Zen Follower

Join Date:
Apr 2006
Posts:
228
Plugin Contributions:
0

Re: hide address on contact page

Reminder!! backup your file before doing this

includes\templates\template_default\templates\tpl_contact_us_default.php

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

try changing CONTACT_US_STORE_NAME_ADDRESS== "0" may work haven't tested it yet though.

If that doesn't work try removing the code.

25 Jan 2007, 5:02 PM
#3
hanafoo avatar

hanafoo

New Zenner

Join Date:
Apr 2006
Posts:
23
Plugin Contributions:
0

Re: hide address on contact page

thank you! i just had to change the 1 to 0 on the CONTACT_US_STORE_NAME_ADDRESS== "1" line!
:)

25 Jan 2007, 10:24 PM
#4
shackle avatar

shackle

Zen Follower

Join Date:
Apr 2006
Posts:
228
Plugin Contributions:
0

Re: hide address on contact page

np, glad I could help :)

28 Jan 2007, 6:28 AM
#5
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: hide address on contact page

umm ... guys? Why not use the switch? :unsure:

When you see an IF with a CONSTANT in it ... that usually means there is a handy dandy switch to turn a feature on/off ...

When you don't know where the switch is ... go to the Tools ... Developer's Tool Kit ...

In the top input box type in:
CONTACT_US_STORE_NAME_ADDRESS

Do not pick anything in the dropdown ... and click search ...

If this is in the configuration table or the product_type_layout tables then it will show you an info box with an EDIT button ...

Click the Edit button and it takes you to the switch ...

Donna toucha da code ... :lamo:

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

26 Feb 2008, 9:29 PM
#6
fergusmacdonald avatar

fergusmacdonald

Zen Follower

Join Date:
Oct 2007
Location:
Edinburgh, Scotland
Posts:
243
Plugin Contributions:
0

Re: hide address on contact page

Thanks for that, just a follow up to save people the time (although worth reading the previous post to understand the process).

You can turn on/off the address details on the Contact Us page by going to:

Admin>Configuration>Email Options>Contact Us - Show Store Name and Address.

21 Aug 2008, 6:42 PM
#7
rebekah avatar

rebekah

Zen Follower

Join Date:
Mar 2006
Posts:
183
Plugin Contributions:
0

Re: hide address on contact page

Thank you, Fergus! This is just what I was looking for. :)

**TheWindCutter.com**
Professional Microphone Windscreens
*Got wind noise? We've got you covered. *

24 Mar 2009, 12:49 PM
#8
mattys avatar

mattys

Zen Follower

Join Date:
Sep 2006
Location:
North Devon, England, UK
Posts:
289
Plugin Contributions:
0

Re: hide address on contact page

why is it under Email Options?

Surely it would make more sense if it was under where you enter the contact address in My Store

24 Mar 2009, 2:54 PM
#9
misty avatar

misty

Inactive

Join Date:
Apr 2004
Location:
UK
Posts:
5,752
Plugin Contributions:
1

Re: hide address on contact page

mattys:

why is it under Email Options?

Surely it would make more sense if it was under where you enter the contact address in My Store
Does not really matter where as long as facility is coded
somewhere...
:wink:

Dezina ZenCart Templates
Please do not PM for support queries..Post in forums..help others

24 Mar 2009, 2:59 PM
#10
mattys avatar

mattys

Zen Follower

Join Date:
Sep 2006
Location:
North Devon, England, UK
Posts:
289
Plugin Contributions:
0

Re: hide address on contact page

yes, it's great that this function is here, but, is obviously in the wrong place

if placed next to address in 'my store' is much more obvious and intuitive

putting it there would mean less users coming to forum to query

would mean less time wasted searching for it!

24 Mar 2009, 3:00 PM
#11
misty avatar

misty

Inactive

Join Date:
Apr 2004
Location:
UK
Posts:
5,752
Plugin Contributions:
1

Re: hide address on contact page

it's great that this function is here, but, is obviously in the wrong place
Not to zencart coders it isn't...

Dezina ZenCart Templates
Please do not PM for support queries..Post in forums..help others

24 Mar 2009, 3:08 PM
#12
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: hide address on contact page

I found placing it near the email for that much more intuitive ...

I also thought placing the on/off for the Centerboxes on the Shopping Cart page when the cart was empty was also a great idea to be placed on the Stock section ... :cool:

But, then, I am but a humble coder ... :smile:

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

24 Mar 2009, 3:08 PM
#13
mattys avatar

mattys

Zen Follower

Join Date:
Sep 2006
Location:
North Devon, England, UK
Posts:
289
Plugin Contributions:
0

Re: hide address on contact page

what difference does it make if you are a zen cart coder, or not?

address admin should go alongside where address is entered, shouldn't it?

why is putting in Email Options better, or understood by zen cart coders?

Email Options = 'email admin', not 'address admin'

I'm probably missing something, would be good to know what it is ;~))

24 Mar 2009, 3:12 PM
#14
mattys avatar

mattys

Zen Follower

Join Date:
Sep 2006
Location:
North Devon, England, UK
Posts:
289
Plugin Contributions:
0

Re: hide address on contact page

Ajeh:

I found placing it near the email for that much more intuitive ...

I also thought placing the on/off for the Centerboxes on the Shopping Cart page when the cart was empty was also a great idea to be placed on the Stock section ... :cool:

But, then, I am but a humble coder ... :smile:
ahhh, so that's where that is, have been hard coding out:oops:

21 Jul 2009, 6:09 PM
#15
nathant avatar

nathant

New Zenner

Join Date:
Jun 2009
Posts:
31
Plugin Contributions:
0

Re: hide address on contact page

fergusmacdonald:

Thanks for that, just a follow up to save people the time (although worth reading the previous post to understand the process).

You can turn on/off the address details on the Contact Us page by going to:

Admin>Configuration>Email Options>Contact Us - Show Store Name and Address.

Thanks! Fixed!