Page 2 of 2 FirstFirst 12
Results 11 to 17 of 17
  1. #11
    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 Trinity14 View Post
    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...
    May I ask why you suggest editing a language file versus updating an admin setting?? Seems the admin setting is simpler/more flexible..
    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.

  2. #12
    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 Trinity14 View Post
    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...
    Thanks. I have tried everything else but nothing worked. This is what I was looking for
    Learning Fast.
    Eden Craft Supplies

  3. #13
    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
    Thanks. I have tried everything else but nothing worked. This is what I was looking for
    You're welcome.
    I was determined to provide a solution to the question you were asking. ;)

  4. #14
    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 Trinity14 View Post
    You're welcome.
    I was determined to provide a solution to the question you were asking. ;)
    and since other people will read these forums and solutions, can you explain why editing the language file is the solution you suggest.. Because that is not clear to me, and if someone comes to this thread looking for help it would help to explain the difference.. Plus I just want to understand. Is there something I am missing???
    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.

  5. #15
    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
    and since other people will read these forums and solutions, can you explain why editing the language file is the solution you suggest.. Because that is not clear to me, and if someone comes to this thread looking for help it would help to explain the difference.. Plus I just want to understand. Is there something I am missing???
    You say your way was best. My understanding of your explanation, is to add the store name to the address so that both would be displayed, am I right? If not please explain.

    If this is right why have the store name separate under my store?
    Learning Fast.
    Eden Craft Supplies

  6. #16
    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
    You say your way was best.
    I said my way was the EASIEST..
    Quote Originally Posted by adb34 View Post
    My understanding of your explanation, is to add the store name to the address so that both would be displayed, am I right? If not please explain.
    That's EXACTLY what I was suggesting, and what I showed you that I do ALL the time..

    Quote Originally Posted by adb34 View Post
    If this is right why have the store name separate under my store?
    I suspect that some of the payment modules use it so that there is a separate single definition for the store name all by itself.. but you will have to ask the Zen Cart devs if you want a more immediate answer..
    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.

  7. #17
    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
    If this is right why have the store name separate under my store?
    Sooo.. here's the longer answer..

    Because the defines for STORE_NAME, STORE_OWNER, STORE_COUNTRY, and STORE_ZONE in the configuration table are used by other modules and features like emails, the built in newsletter feature, some payment and shipping modules, and any other place where these SINGLE individual values are needed..

    The define for the STORE_NAME_ADDRESS on the other hand is used only in the check money order payment module (where it states the NAME and ADDRESS of who the check money order should be made payable and mailed to). It is also used in the contact form, invoice, and packinglist. In all of these uses it is pretty clear that you can simply add any additional information you want here.. So here's another example of this solution in live use.. (the site owner built this site, and this is how SHE added her company name to the Contact Us form)

    http://scrappinstuff(dot)com
    Scrappin' Stuff
    13611 Doffin St.
    Cedar Lake, IN 46303

    Be Sure to Follow Us on Facebook!
    www.facebook.com/Scrappin(dot)Sports(dot)Stuff
    So while the answer Trinity14 provided will work, it requires editing a file to execute, and I'm not sure why one would need to do that when there is clearly an admin option for making this very change.. (one which I and MANY others have used for 8 years) The admin option is a simpler change, and one which eases later upgrades since it will survive a database upgrade.

    Anyway.. Do what works for you.. I just know that people search this forum, and I wanted to inquire about Trinity14's method just in case there is another consideration I hadn't thought of.. I also wanted to make sure that folks who stumble across this thread can see that an alternate and IMHO easier option exists.. (especially for non-techie shopowners..)
    Last edited by DivaVocals; 21 Apr 2015 at 05:15 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.

 

 
Page 2 of 2 FirstFirst 12

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