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
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
**Reminder!! backup your file before doing this**
includes\templates\template_default\templates\tpl_contact_us_default.php
try changing CONTACT_US_STORE_NAME_ADDRESS== "0" may work haven't tested it yet though.Code:<?php if (CONTACT_US_STORE_NAME_ADDRESS== '1') { ?> <address><?php echo nl2br(STORE_NAME_ADDRESS); ?></address> <?php } ?>
If that doesn't work try removing the code.
thank you! i just had to change the 1 to 0 on the CONTACT_US_STORE_NAME_ADDRESS== "1" line!
:)
np, glad I could help :)
umm ... guys? Why not use the switch?![]()
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 ...![]()
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!
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.
Thank you, Fergus! This is just what I was looking for. :)
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
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!