Zen Cart Logo
Forums / General Questions / Define a global CONSTANT

Define a global CONSTANT

Locked

Views: 2,025

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
20 Oct 2008, 2:51 AM
#1
dgsignal avatar

dgsignal

New Zenner

Join Date:
May 2008
Posts:
31
Plugin Contributions:
0

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

20 Oct 2008, 2:59 AM
#2
mprough avatar

mprough

Totally Zenned

Join Date:
Nov 2007
Location:
Woodbine, Georgia, United States
Posts:
4,279
Plugin Contributions:
37

Re: Define a global CONSTANT

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

~Melanie

20 Oct 2008, 3:11 AM
#3
dgsignal avatar

dgsignal

New Zenner

Join Date:
May 2008
Posts:
31
Plugin Contributions:
0

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

20 Oct 2008, 5:01 AM
#4
dgsignal avatar

dgsignal

New Zenner

Join Date:
May 2008
Posts:
31
Plugin Contributions:
0

Re: Define a global CONSTANT

Got it. Thanks!