Results 1 to 7 of 7
  1. #1
    Join Date
    Aug 2004
    Posts
    503
    Plugin Contributions
    0

    Default Contact Us Information

    Hi,

    We have created a custom contact us page and do not want the physical address listed on that page. How can I remove the physical address from that page.

    Code:
    includes/languages/english/html_includes/custom_directory/define_contact_us.php
    Thanks

    Rick

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Contact Us Information

    Depending upon your reasoning - You can change or elininate the physical address at
    admin > config > my store > Store Address and Phone > enter other than physical details or leave blank

    This will keep the physical address from appearing any where.

    If only the contact us form - then in a copy of includes/templates/template_default/templates/tpl_contact_us_default.php you can alter code to not display store address
    Code:
    <?php if (CONTACT_US_STORE_NAME_ADDRESS== '1') { ?>
    
    <address><?php echo nl2br(STORE_NAME_ADDRESS); ?></address>
    
    <?php } ?>
    Zen-Venom Get Bitten

  3. #3
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

    Default Re: Contact Us Information

    Looks like lines 19-21 in:

    includes/templates/YOUR_TEMPLATE/templates/tpl_contact_us_default.php

  4. #4
    Join Date
    Aug 2004
    Posts
    503
    Plugin Contributions
    0

    Default Re: Contact Us Information

    Thanks guys!

    That was the solution I was looking for.

    Rick

  5. #5
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: Contact Us Information

    Or you could just go to Admin->Configuration->Email Options->Contact Us - Show Store Name and Address ... and turn it off.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  6. #6
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Contact Us Information

    Quote Originally Posted by DrByte
    Or you could just go to Admin->Configuration->Email Options->Contact Us - Show Store Name and Address ... and turn it off.
    I couldn't recall where it was!!!
    Zen-Venom Get Bitten

  7. #7
    Join Date
    Apr 2008
    Location
    Calif
    Posts
    85
    Plugin Contributions
    0

    Default Re: Contact Us Information

    Thank you! This was very helpful, and exactly what I was looking for.

 

 

Similar Threads

  1. v151 Contact Information
    By Enytheng in forum General Questions
    Replies: 1
    Last Post: 9 Dec 2014, 12:40 PM
  2. Product information add when take contact
    By Tsuti in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 19 Dec 2011, 10:01 AM
  3. Adding information to contact form
    By digitalmatrix in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 20 Mar 2009, 08:57 PM
  4. Adding Contact Information
    By trucurrent in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 10 Apr 2007, 08:36 PM
  5. Contact us in Information sidebox
    By sharemind in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 14 Jul 2006, 05:53 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