Zen Cart Logo

Overrides hierarchy

Views: 1,484

Results 1 to 3 of 3
2 Feb 2011, 1:56 PM
#1
beasleybub avatar

beasleybub

Zen Follower

Join Date:
May 2006
Location:
Virginia U.S
Posts:
176
Plugin Contributions:
1

Overrides hierarchy

I'm sure this has been asked a million times but can someone please clarify about the overrides hierarchy.

So as far as I understand the files that can be overridden without affecting the core files are as follows.

  • catalog/includes/templates/your_template/template_info.php

  • catalog/includes/templates/your_template/common/html_header.php

  • catalog/includes/templates/your_template/common/tpl_footer.php

  • catalog/includes/templates/your_template/common/tpl_header.php

  • catalog/includes/templates/your_template/common/tpl_main_page.php

  • catalog/includes/templates/your_template/common/tpl_tabular_display.php

  • catalog/includes/templates/your_template/css/stylesheet.css

  • catalog/includes/templates/your_template/css/stylesheet_css_buttons.css

  • catalog/includes/templates/your_template/jscript/on_load/on_load_init.js

  • catalog/includes/templates/your_template/popup_shipping_estimator/tpl_main_page.php

  • catalog/includes/templates/your_template/sideboxes/tpl_shopping_cart.php

  • catalog/includes/templates/your_template/templates/tpl_account_default.php

  • catalog/includes/templates/your_template/templates/tpl_account_edit_default.php

  • catalog/includes/templates/your_template/templates/tpl_account_password_default.php

  • catalog/includes/templates/your_template/templates/tpl_address_book_default.php

  • catalog/includes/templates/your_template/templates/tpl_address_book_process_default.php

  • catalog/includes/templates/your_template/templates/tpl_checkout_confimration_default.php

  • catalog/includes/templates/your_template/templates/tpl_checkout_payment_address_default.php

  • catalog/includes/templates/your_template/templates/tpl_checkout_payment_default.php

  • catalog/includes/templates/your_template/templates/tpl_checkout_shipping_address_default.php

  • catalog/includes/templates/your_template/templates/tpl_checkout_shipping_default.php

  • catalog/includes/templates/your_template/templates/tpl_checkout_success_default.php

  • catalog/includes/templates/your_template/templates/tpl_create_account_default.php

  • catalog/includes/templates/your_template/templates/tpl_create_account_success_default.php

  • catalog/includes/templates/your_template/templates/tpl_down_for_maintenance_default.php

  • catalog/includes/templates/your_template/templates/tpl_index_default.php

  • catalog/includes/templates/your_template/templates/tpl_index_product_list.php

  • catalog/includes/templates/your_template/templates/tpl_login_default.php

  • catalog/includes/templates/your_template/templates/tpl_modules_checkout_new_address.php

  • catalog/includes/templates/your_template/templates/tpl_modules_create_account.php

  • catalog/includes/templates/your_template/templates/tpl_module_main_product_image.php

  • catalog/includes/templates/your_template/templates/tpl_modules_product_listing.php

  • catalog/includes/templates/your_template/templates/tpl_modules_shipping_estimator.php

  • catalog/includes/templates/your_template/templates/tpl_page_default.php

  • catalog/includes/templates/your_template/templates/tpl_page_not_found_default.php

  • catalog/includes/templates/your_template/templates/tpl_password_forgotten_default.php

  • catalog/includes/templates/your_template/templates/tpl_product_info_display.php

  • catalog/includes/templates/your_template/templates/tpl_shopping_cart_default.php

  • catalog/includes/templates/your_template/templates/tpl_time_out_default.php

  • catalog/includes/modules/your_template/product_listing.php

  • catalog/includes/languages/your_template/english.php

  • catalog/includes/languages/english/your_template/checkout_payment_address.php

  • catalog/includes/languages/english/your_template/checkout_shipping_address.php

  • catalog/includes/languages/english/your_template/checkout_success.php

  • catalog/includes/languages/english/your_template/create_account.php

  • catalog/includes/languages/english/your_template/create_account_success.php

  • catalog/includes/languages/english/your_template/down_for_maintenance.php

  • catalog/includes/languages/english/your_template/email_extras.php

  • catalog/includes/languages/english/your_template/index.php

  • catalog/includes/languages/english/your_template/login.php

  • catalog/includes/languages/english/your_template/shopping_cart.php

  • catalog/includes/languages/english/your_template/time_out.php

  • catalog/nddbc.html

  • includes/templates

  • includes/modules

  • includes/modules/sideboxes

  • includes/languages

  • includes/languages/english

  • includes/languages/english/extra_definitions

  • includes/languages/english/html_includes

  • includes/languages/english/modules/order_total

  • includes/languages/english/modules/payment

  • includes/languages/english/modules/shipping

Typically any image or language file.

I know there is an overides chart in the downloads section but wonder if it's out of date.

Am I missing anything? Thanks

2 Feb 2011, 7:14 PM
#2
afo avatar

afo

Totally Zenned

Join Date:
Aug 2004
Location:
New York City
Posts:
6,800
Plugin Contributions:
0

Re: Overrides hierarchy

Simple rule of thumb is anywhere you see a /classic/ folder, you can create a folder for your custom template.

3 Feb 2011, 12:02 PM
#3
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Overrides hierarchy

afo:

Simple rule of thumb is anywhere you see a /classic/ folder, you can create a folder for your custom template.
Adding to that:

Where there exists a classic directory -
Every file in that view can be overridden - not folders, just files

The only exception is the template directory

/includes/templates/your template

There, all files and folders that exist in template_default can be created and overridden

In addition, page specific directories can be created to hold custom files

i.e. - You want a custom layout for your checkout pages

Create a tpl_main_page.php that does what you want
No header, no left cilumn, no right colums and/or special content that would be to replace the std header or??

Then create one or more directories for those pages you want this look and place the file(s) in them

checkout_shipping
checkout_payment
checkout_confirmation
checkout_success

Or a special lay out for other pages like

shippinginfo
privacy
stc