Results 1 to 4 of 4
  1. #1
    Join Date
    May 2008
    Posts
    31
    Plugin Contributions
    0

    Default Define a global CONSTANT

    Hey Folks,

    I have a quick question about how best to accomplish the following task.

    I want to create/define a single Terms Of Use statement for use in multiple locations throughout my site. More specifically, I want to include that statement in an uneditable textarea on several forms on my site that a user must accept upon submission. I do not want to link to another page where the user can read my statement, nor do I want to edit multiple Terms of Use statements (i.e. one for each page).

    I would much rather prefer a single statement that I can edit, and then call from each tpl page. The best way I can describe it would be a global constant kind of like STORE_OWNER_EMAIL_ADDRESS works for the store owner's email address.

    Thanks for any suggestions,

    Dustin

  2. #2
    Join Date
    Nov 2007
    Location
    Woodbine, Georgia, United States
    Posts
    4,015
    Plugin Contributions
    61

    Default Re: Define a global CONSTANT

    Use a php include... One file as many locations as you desire.

    ~Melanie
    PRO-Webs, Inc. :: Recent Zen Cart Projects :: Zen Cart SEO – 12 Steps to Success
    **I answer questions in the forum, private messages are NOT answered. You are welcome to contact us via our website for professional engagements.

  3. #3
    Join Date
    May 2008
    Posts
    31
    Plugin Contributions
    0

    Default Re: Define a global CONSTANT

    Okay. Just for clarification. I'm still figuring out how to get my includes and requires working properly in ZenCart. Hope this isn't a stupid question...

    Should I create a new define page with my Terms of Use statement and call that with an include, or should I create a basic php document (with my Terms of Use) in my public_html folder and include that.

    Thanks, Dustin
    Last edited by dgsignal; 20 Oct 2008 at 04:15 AM.

  4. #4
    Join Date
    May 2008
    Posts
    31
    Plugin Contributions
    0

    Default Re: Define a global CONSTANT

    Got it. Thanks!

 

 

Similar Threads

  1. v151 Constant define: BOX_ENTRY_CUSTOMERS
    By d0ugparker in forum General Questions
    Replies: 2
    Last Post: 16 Nov 2014, 01:47 AM
  2. Replies: 2
    Last Post: 5 Dec 2013, 01:07 PM
  3. define a constant text
    By janine in forum Addon Language Packs
    Replies: 5
    Last Post: 15 Dec 2011, 03:02 PM
  4. Correct method to add new define constant?
    By torvista in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 7 May 2010, 07:21 PM
  5. err: Warning: constant(): Couldn't find constant MODULE_SHIPPING_MZMT_GEOZONE_7_TEXT_
    By ginginca in forum Built-in Shipping and Payment Modules
    Replies: 1
    Last Post: 6 Mar 2007, 07:19 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