Results 1 to 8 of 8
  1. #1
    Join Date
    Aug 2012
    Posts
    331
    Plugin Contributions
    0

    Default 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

  2. #2
    Join Date
    Aug 2012
    Location
    North Carolina
    Posts
    28
    Plugin Contributions
    0

    Default Re: Multiple store addresses

    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 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.
    Last edited by ahhs9162; 16 Jan 2013 at 06:22 PM.

  3. #3
    Join Date
    Aug 2012
    Posts
    331
    Plugin Contributions
    0

    Default Re: Multiple store addresses

    Quote Originally Posted by ahhs9162 View Post
    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 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:
    Code:
    <?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.

  4. #4
    Join Date
    Aug 2012
    Posts
    331
    Plugin Contributions
    0

    Default Re: Multiple store addresses

    I found a solution,

    i removed:

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

  5. #5
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,268
    Plugin Contributions
    3

    Default Re: Multiple store addresses

    Better to NOT REMOVE CODE, but to COMMENT IT OUT to prevent it from firing.
    20 years a Zencart User

  6. #6
    Join Date
    Aug 2012
    Posts
    331
    Plugin Contributions
    0

    Default Re: Multiple store addresses

    That's right!

    Will do it right now!

    Thanks

  7. #7
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,268
    Plugin Contributions
    3

    Default 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

  8. #8
    Join Date
    Aug 2012
    Posts
    331
    Plugin Contributions
    0

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

    Oops, how do i comment it out?

 

 

Similar Threads

  1. how to add multiple fields to contact us page
    By sammybotz in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 22 Nov 2009, 04:46 PM
  2. Contact us page with multiple contact choices?
    By plymgary1 in forum General Questions
    Replies: 1
    Last Post: 19 Aug 2009, 12:07 PM
  3. Need help changing store name on contact page
    By MULISH in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 21 May 2009, 12:51 AM
  4. Contact us - Possible to send info to 2 email addresses?
    By canemasters in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 16 Jan 2008, 02:49 AM
  5. Multiple contact us page
    By waghelak in forum General Questions
    Replies: 2
    Last Post: 25 May 2006, 03:05 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