Page 1 of 2 12 LastLast
Results 1 to 10 of 15
  1. #1
    Join Date
    Apr 2006
    Posts
    25
    Plugin Contributions
    0

    Default 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

  2. #2
    Join Date
    Apr 2006
    Posts
    242
    Plugin Contributions
    0

    Default Re: hide address on contact page

    **Reminder!! backup your file before doing this**

    includes\templates\template_default\templates\tpl_contact_us_default.php

    Code:
    <?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.

  3. #3
    Join Date
    Apr 2006
    Posts
    25
    Plugin Contributions
    0

    Default 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!
    :)

  4. #4
    Join Date
    Apr 2006
    Posts
    242
    Plugin Contributions
    0

    Default Re: hide address on contact page

    np, glad I could help :)

  5. #5
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: hide address on contact page

    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!

  6. #6
    Join Date
    Oct 2007
    Location
    Edinburgh, Scotland
    Posts
    243
    Plugin Contributions
    1

    Default 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.

  7. #7
    Join Date
    Mar 2006
    Posts
    194
    Plugin Contributions
    0

    Default 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.

  8. #8
    Join Date
    Sep 2006
    Location
    North Devon, England, UK
    Posts
    289
    Plugin Contributions
    0

    Default 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

  9. #9
    Join Date
    Apr 2004
    Location
    UK
    Posts
    5,821
    Plugin Contributions
    2

    Default Re: hide address on contact page

    Quote Originally Posted by mattys View Post
    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...

  10. #10
    Join Date
    Sep 2006
    Location
    North Devon, England, UK
    Posts
    289
    Plugin Contributions
    0

    Default 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!

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. cant remove address on 'contact us' page ?
    By drewdana in forum General Questions
    Replies: 6
    Last Post: 14 Oct 2011, 06:51 PM
  2. Contact us page's Address listing
    By jasonh1234 in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 28 Apr 2011, 12:24 AM
  3. address temp on Contact page
    By rowby in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 21 Nov 2010, 05:14 PM
  4. Move address down on Contact Us page
    By sports guy in forum Basic Configuration
    Replies: 0
    Last Post: 13 Sep 2010, 03:03 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg