Forums / General Questions / Which Template files?

Which Template files?

Views: 519

Results 1 to 3 of 3
13 Nov 2012, 4:28 PM
#1
webmeister avatar

webmeister

New Zenner

Join Date:
Oct 2012
Posts:
49
Plugin Contributions:
0

Which Template files?

Does ZC use templates/classic or templates/templates_default? or both? I guess what i am also saying is what is the name of my template?

13 Nov 2012, 4:43 PM
#2
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,109
Plugin Contributions:
56

Re: Which Template files?

When you initially install your Zen Cart, the selected template is "classic" and can be changed via your admin's Tools->Template Selection. Let's play with your contact_us page and pretend that your selected template is named YOUR_TEMPLATE and your customer's language is english.

The language files associated with that page is named contact_us.php and is present in one of the language directories. If the file is found in the /includes/languages/english/YOUR_TEMPLATE/ directory ... that's the one that is used. Otherwise, it's "assumed" to be present in the /includes/languages/english/ directory (since it was during the install).

Ditto with the page template file (tpl_contact_us_default.php). If that file is present in /includes/templates/YOUR_TEMPLATE/templates/ it's used; otherwise, the file present in /includes/templates/template_default/templates/ is used.

Essentially, the files in the YOUR_TEMPLATE directories "override" the like-named files that are part of the default Zen Cart distribution. If there's no YOUR_TEMPLATE file, then the default version of the file is used.

I think that there's a FAQ on this ...

13 Nov 2012, 5:04 PM
#3
webmeister avatar

webmeister

New Zenner

Join Date:
Oct 2012
Posts:
49
Plugin Contributions:
0

Re: Which Template files?

Thanks, just double checking. I have not made a custom template & cannot get Big Chooser to show up in order Total Module although the files appear to be in the right places...any suggestions?