Page 1 of 2 12 LastLast
Results 1 to 10 of 17
  1. #1
    Join Date
    Mar 2008
    Location
    Brampton, Cumbria, United Kingdom, United Kingdom
    Posts
    816
    Plugin Contributions
    2

    Default Contact Us - Add the Store's Name

    At the top of the contact us form, you will see the stores address, I would like to add the stores name to this. in tpl_contact_us_default.php I have found
    Code:
    <?php if (CONTACT_US_STORE_NAME_ADDRESS== '1') { ?>
    <address><?php echo nl2br(STORE_NAME_ADDRESS); ?></address>
    <?php } ?>
    which I have assumed is for the address. Can I use similar coding to add the store name, and, is there any other coding that is needed to display the store name?
    Learning Fast.
    Eden Craft Supplies

  2. #2
    Join Date
    Jan 2014
    Location
    Ontario, Canada
    Posts
    252
    Plugin Contributions
    3

    Default Re: Contact Us - Add the Store's Name

    My clients like a bit more information on the contact us page... so I make these changes:

    in includes/templates/YOUR_TEMPLATE/templates/tpl_contact_us_default.php

    PHP Code:
    <?php // if (CONTACT_US_STORE_NAME_ADDRESS== '1') { ?>
    <!-- <address><?php //echo nl2br(STORE_NAME_ADDRESS); ?></address> -->
    <?php //} ?>
    in includes/languages/english/html_includes/TOUR_TEMPLATE/define_contact_us.php
    This is where I add :

    Your Store Name<br />
    Your Store Address<br />
    <br /><br />
    <h3> Phone </h3>
    <a href="tel:y-our-num-ber"> y-our-num-ber</a> </h2>
    <h3> Store Hours</h3>
    Mon - Thu: 9:00am - 5:00pm
    <br /><br />
    Fri: 9:00am - 5:30pm
    <br /><br />
    Sat: 9:00am - 1:00pm
    <br /><br />
    Sun: Closed
    <br /><br />

    etc...

  3. #3
    Join Date
    Mar 2008
    Location
    Brampton, Cumbria, United Kingdom, United Kingdom
    Posts
    816
    Plugin Contributions
    2

    Default Re: Contact Us - Add the Store's Name

    Spot on; just what I was looking for thank you
    Learning Fast.
    Eden Craft Supplies

  4. #4
    Join Date
    Jan 2014
    Location
    Ontario, Canada
    Posts
    252
    Plugin Contributions
    3

    Default Re: Contact Us - Add the Store's Name

    Glad to help 😀

  5. #5
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,023
    Plugin Contributions
    32

    Default Re: Contact Us - Add the Store's Name

    OR...

    You can do something much simpler by simply going to "My Store" in the Admin > Configuration menu.. Edit the "Store Address and Phone", and that way you don't have to edit ANY files.. (and YES, you can add some HTML if you wish)
    Last edited by DivaVocals; 18 Apr 2015 at 01:19 AM.
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

  6. #6
    Join Date
    Mar 2008
    Location
    Brampton, Cumbria, United Kingdom, United Kingdom
    Posts
    816
    Plugin Contributions
    2

    Default Re: Contact Us - Add the Store's Name

    Quote Originally Posted by DivaVocals View Post
    OR...

    You can do something much simpler by simply going to "My Store" in the Admin > Configuration menu.. Edit the "Store Address and Phone", and that way you don't have to edit ANY files.. (and YES, you can add some HTML if you wish)
    Yes that is very true and I have already done that when I setup the site, what is not displayed on the contact us pages are the Name of the shop and the telephone number.

    The bit that Trinity14 put I have had a re-think. I do not want to just write HTML coding I would like to code it up the same way as the address is
    Code:
    <?php if (CONTACT_US_STORE_NAME_ADDRESS== '1') { ?>
    <address><?php echo nl2br(STORE_NAME_ADDRESS); ?></address>
    <?php } ?>
    but for the store name. That way I can use it for my other stores and update to this plugin for everybody else to use.

    So if I do something like
    Code:
    <?php if (CONTACT_US_STORE_NAME== '1') { ?>
    <address><?php echo nl2br(STORE_NAME); ?></address>
    <?php } ?>
    Would that work? and is there any other coding I need to put anywhere else?
    Learning Fast.
    Eden Craft Supplies

  7. #7
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,023
    Plugin Contributions
    32

    Default Re: Contact Us - Add the Store's Name

    Quote Originally Posted by adb34 View Post
    Yes that is very true and I have already done that when I setup the site, what is not displayed on the contact us pages are the Name of the shop and the telephone number.
    I understood WHAT you were trying to add to the contact us page.. Are you under the impression that you CAN'T add the store name to the Store Address and Phone setting in the admin???? Because you CAN do this.. which is why I suggested the SIMPLER option..

    That said, carry on with the other option if you wish.. It's certainly another viable option, but IMHO that solution not the easiest of the possible solutions and I don't see that there's an upside in making the change by editing the file directly.. (happy to be proven wrong on that last point however..)

    Anyway I just wanted to drop in to post the easier solution for those who might come across this thread in the future to save them a little bit of time
    ..
    Last edited by DivaVocals; 18 Apr 2015 at 06:34 PM.
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

  8. #8
    Join Date
    Mar 2008
    Location
    Brampton, Cumbria, United Kingdom, United Kingdom
    Posts
    816
    Plugin Contributions
    2

    Default Re: Contact Us - Add the Store's Name

    Quote Originally Posted by DivaVocals View Post
    I understood WHAT you were trying to add to the contact us page.. Are you under the impression that you CAN'T add the store name to the Store Address and Phone setting in the admin???? Because you CAN do this.. which is why I suggested the SIMPLER option..

    That said, carry on with the other option if you wish.. It's certainly another viable option, but IMHO that solution not the easiest of the possible solutions and I don't see that there's an upside in making the change by editing the file directly.. (happy to be proven wrong on that last point however..)

    Anyway I just wanted to drop in to post the easier solution for those who might come across this thread in the future to save them a little bit of time
    ..
    I know you can do what I am after it is how to do it (just the store name)
    Learning Fast.
    Eden Craft Supplies

  9. #9
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,023
    Plugin Contributions
    32

    Default Re: Contact Us - Add the Store's Name

    Quote Originally Posted by adb34 View Post
    I know you can do what I am after it is how to do it (just the store name)
    What I posted to do IS the solution.. (see this in action firsthand here: http://www(dot)tablelegworld(dot)com/Contact-Us)

    If you post a link to your store and your settings from "My Store", it might help.. Editing the code directly is pretty unnecessary.. so perhaps your settings are incorrect??
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

  10. #10
    Join Date
    Jan 2014
    Location
    Ontario, Canada
    Posts
    252
    Plugin Contributions
    3

    Default Re: Contact Us - Add the Store's Name

    Quote Originally Posted by adb34 View Post
    At the top of the contact us form, you will see the stores address, I would like to add the stores name to this. in tpl_contact_us_default.php I have found
    Code:
    <?php if (CONTACT_US_STORE_NAME_ADDRESS== '1') { ?>
    <address><?php echo nl2br(STORE_NAME_ADDRESS); ?></address>
    <?php } ?>
    which I have assumed is for the address. Can I use similar coding to add the store name, and, is there any other coding that is needed to display the store name?
    Hey adb34 -
    Try this out:
    PHP Code:
    <?php if (CONTACT_US_STORE_NAME_ADDRESS== '1') { ?>
    <address><?php echo nl2br(STORE_NAME);?></address>
    <address><?php echo nl2br(STORE_NAME_ADDRESS); ?></address>
    <?php ?>
    I believe this is what you were originally looking for...

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v151 How do I remove the default title and add my store name?
    By atfpodcast in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 29 Nov 2012, 12:52 AM
  2. Contact us form: Removing the Store, Name, Address etc. from top
    By hello in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 24 Jul 2010, 08:12 AM
  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. Replies: 2
    Last Post: 13 Jul 2006, 11:25 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR