Forums / General Questions / Template override folder within folders question

Template override folder within folders question

Views: 376

Results 1 to 3 of 3
20 Jul 2016, 5:55 AM
#1
oavs avatar

oavs

Totally Zenned

Join Date:
Jan 2006
Location:
Downunder - QLD - Gold Coast
Posts:
921
Plugin Contributions:
0

Template override folder within folders question

Hi

I have seen and read template overrides and generally it is easy and works. One thing is confusing and have not been addressed is folder within using 'CUSTOM' folders.

For example, I want all my shipping and payments to be in custom and in CUSTOM folders.

Is it ??
\includes\modules\CUSTOM\payment(or shipping) \mypayment.php

or

\includes\modules\payment(or shipping)\CUSTOM\mypayment.php

or it can only be
\includes\modules\payment(or shipping)\mypayment.php

Also

\includes\modules\payment\pages\mypayment.php what should it be for CUSTOM?

Thanks

Downunder QLD

20 Jul 2016, 8:01 AM
#2
frank18 avatar

frank18

Deceased

Join Date:
Nov 2007
Location:
Sunny Coast, Australia
Posts:
3,427
Plugin Contributions:
2

Re: Template override folder within folders question

oavs:

Hi

I have seen and read template overrides and generally it is easy and works. One thing is confusing and have not been addressed is folder within using 'CUSTOM' folders.

For example, I want all my shipping and payments to be in custom and in CUSTOM folders.

Is it ??
\includes\modules\CUSTOM\payment(or shipping) \mypayment.php

or

\includes\modules\payment(or shipping)\CUSTOM\mypayment.php

or it can only be
\includes\modules\payment(or shipping)\mypayment.php

Also

\includes\modules\payment\pages\mypayment.php what should it be for CUSTOM?

Thanks

Sadly, neither will work.

From the Wiki at https://www.zen-cart.com/wiki/index.php/Developers_API_Overrides#Module_overrides

Module overrides

You can override files in the folder includes/modules/.

[\[IMG\]https://www.zen-cart.com/wiki/images/b/b3/Info.png\[/IMG\]](https://www.zen-cart.com/wiki/index.php/File:Info.png) Note:

The override system does not yet extend to files in the subfolders order_total, pages, payment, or shipping.

NOTE: We are sorry that Frank is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

20 Jul 2016, 11:59 AM
#3
lat9 avatar

lat9

Administrator

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

Re: Template override folder within folders question

You can also refer to the Zen Cart Overrides Cheatsheet for the locations of the currently-available override folders.