Forums / All Other Contributions/Addons / ZC Overrides Cheatsheet

ZC Overrides Cheatsheet

Started by lat9 on 15 Mar 2011, 4:30 PM · Views: 57,319

Results 1 to 20 of 28
15 Mar 2011, 4:30 PM
#1
lat9 avatar

lat9

Administrator

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

ZC Overrides Cheatsheet

This cheatsheet identifies the override possibilities for various directories in the Zen Cart structure. I thought I'd post it here before submitting it to the Free Software Add-Ons to see if there's any interest and/or suggestions for improvement.

Just extract the files and then bring up the file zc_overrides_139.htm in your browser window.

15 Mar 2011, 7:01 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Re: ZC Overrides Cheatsheet

Would be interested in the differences between this and http://www.zen-cart.com/index.php?main_page=product_contrib_info&products_id=298

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

15 Mar 2011, 7:34 PM
#3
lat9 avatar

lat9

Administrator

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

Re: ZC Overrides Cheatsheet

DrByte, the add-on you referenced identifies the locations of the template-specific overrides only. My submission attempts to pull together all the override possibilities available in Zen Cart.

15 Mar 2011, 9:31 PM
#4
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Re: ZC Overrides Cheatsheet

Fair. Was just curious. Hadn't reviewed yours yet.

NOTES:
a) /index_filters/YOUR_TEMPLATE/ is also valid since 1.3.9

b) I would probably add a little emphasis to your comments about copying from template_default that it's not necessary to copy the entire template_default folder: just the files you want to change.

c) I would also suggest adding to your comments about header_php.php files that a good reminder would be to NEVER rename any existing header_php.php files for backup purposes. ie: header_php-old.php would STILL get loaded, and could cause all manner of confusion and complicated debugging steps. (Same point is valid for all other auto-inclusion folders, but this one is particularly volatile because of the existing files vs the other folders where usually one is only adding new files.)

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

16 Mar 2011, 2:21 PM
#5
lat9 avatar

lat9

Administrator

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

Re: ZC Overrides Cheatsheet

DrByte, thanks for the comments; I'll incorporate them in my next iteration.

16 Mar 2011, 3:41 PM
#6
lat9 avatar

lat9

Administrator

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

Re: ZC Overrides Cheatsheet

Here's v1.0.1 of the cheatsheet. I've incorporated DrByte's comments and found another override location.

6 Jul 2011, 2:57 PM
#7
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: ZC Overrides Cheatsheet

Amazing what you find on random searches through this forum.. BOOKMARKING THIS!!!!:clap:

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 May 2012, 4:15 AM
#9
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: ZC Overrides Cheatsheet

Whoo hoo!!!!:clap:

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 Dec 2013, 5:41 PM
#10
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,900
Plugin Contributions:
22

Re: ZC Overrides Cheatsheet

BEYOND EXCELLENT.

As to the renaming of files, I have a small addition to that of DrByte's. Renaming a file to .bak will raise PCI flags. I generally use my initials and rename filename_here.php to filename_here.jet. As long as you are not J.Paul Getty, George I Foxworthy, or Peter H Phillips, etc. there should be no problem. AND, your changes are easily found later with a search.

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

2 Dec 2013, 6:30 PM
#11
lat9 avatar

lat9

Administrator

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

Re: ZC Overrides Cheatsheet

Thanks, dbltoe! I'll get that updated real-soon-now.

4 Dec 2013, 2:53 PM
#12
lat9 avatar

lat9

Administrator

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

Re: ZC Overrides Cheatsheet

v1.0.3 has been submitted to the Plugins.

6 Sep 2014, 3:10 PM
#13
lat9 avatar

lat9

Administrator

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

Re: ZC Overrides Cheatsheet

I've just uploaded v1.1.0 to the Plugins area; it identifies the override location for the newly-added in Zen Cart v1.5.3 auto-loaded observers.

8 Sep 2014, 2:08 PM
#14
lat9 avatar

lat9

Administrator

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

Re: ZC Overrides Cheatsheet

That was fast! v1.1.0 is now available for download.

8 Sep 2014, 11:29 PM
#15
gilby avatar

gilby

Totally Zenned

Join Date:
Aug 2005
Location:
Vic, Oz
Posts:
1,816
Plugin Contributions:
0

Re: ZC Overrides Cheatsheet

lat9:

I've just uploaded v1.1.0 to the Plugins area; it identifies the override location for the newly-added in Zen Cart v1.5.3 auto-loaded observers.Nice... :cool:

10 Nov 2016, 3:50 PM
#16
lat9 avatar

lat9

Administrator

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

Re: ZC Overrides Cheatsheet

I've just submitted v1.1.1 to the Plugins for review (https://www.zen-cart.com/downloads.php?do=file&id=1393).

This minor update notes that the override locations hold for Zen Cart versions 1.3.9 through 1.5.5b and makes a notation on those locations where the files are loaded in file-system order (as opposed to alphabetically).

15 Nov 2016, 12:58 PM
#17
lat9 avatar

lat9

Administrator

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

Re: ZC Overrides Cheatsheet

v1.1.1 of the cheat-sheet is now available from the Plugins.

23 Nov 2016, 7:14 AM
#18
nicksab avatar

nicksab

Totally Zenned

Join Date:
Apr 2011
Posts:
592
Plugin Contributions:
0

Re: ZC Overrides Cheatsheet

Where do you upload the only file?

23 Nov 2016, 12:44 PM
#19
lat9 avatar

lat9

Administrator

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

Re: ZC Overrides Cheatsheet

nicksab:

Where do you upload the only file?
This isn't a "normal" plugin; it's just a file containing documentation. You can unzip the plugin's zip-file on your local machine and open it for viewing with your web-browser.

24 Oct 2020, 12:30 PM
#20
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,900
Plugin Contributions:
22

Re: ZC Overrides Cheatsheet

I've had this as a bookmark for ages. Great tool.

Just wondering a little on the includes/modules/pages portion.

If customizing includes/modules/pages/ask_a_question, would you add header_phpask_a_question.php in the folder or header_phpresponsive_classic.php?

Trying to figure some way to recognize the template being used for that file. Of course there's the problem if the next template is "quick_run" it won't have a chance until the header_phpresponsive_classic.php is removed.

Asking for a friend. :P

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com