Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / table.php override does not get picked up by Admin

table.php override does not get picked up by Admin

Locked

Views: 1,647

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
22 Dec 2007, 6:30 PM
#1
torvista avatar

torvista

Totally Zenned

Join Date:
Aug 2007
Location:
Gijón, Asturias, Spain
Posts:
2,873
Plugin Contributions:
7

table.php override does not get picked up by Admin

Hi,
I copied this file
/includes/languages/english/modules/shipping/table.php

to

/includes/languages/english/modules/shipping/my_template/table.php

the file contains
define('MODULE_SHIPPING_TABLE_TEXT_TITLE', 'Table Rate');
define('MODULE_SHIPPING_TABLE_TEXT_DESCRIPTION', 'Table Rate');
define('MODULE_SHIPPING_TABLE_TEXT_WAY', 'Best Way');

Changed text in the override table.php file shows up in the shop checkout-shipping options as expected but the changes of _TITLE and _DESCRIPTION are ignored in the admin-modules-shipping section.
Admin continues to pick up these two strings from the original file, not the ones in the override directory.

So any extra table modules have to go in the original directory to allow their descriptions to be seen in Admin.
Otherwise it shows
MODULE_SHIPPING_TABLE2_TEXT_TITLE instead of what you have called it.

This does not seem in keeping with the upgrade/override mantra or have I missed something?

regards
Steve

22 Dec 2007, 7:29 PM
#2
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,611
Plugin Contributions:
0

Re: table.php override does not get picked up by Admin

The Admin does not have overrides at this time.

22 Dec 2007, 7:43 PM
#3
torvista avatar

torvista

Totally Zenned

Join Date:
Aug 2007
Location:
Gijón, Asturias, Spain
Posts:
2,873
Plugin Contributions:
7

Re: table.php override does not get picked up by Admin

OK thanks,

I understood that the Admin files cannot themselves be overridden, but this is a case of a legitimate override file being ignored by Admin which I though was a different scenario,

thanks
Steve

22 Dec 2007, 8:02 PM
#4
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: table.php override does not get picked up by Admin

Files in /includes/ do not apply to admin. The /admin/includes/ files handle things for the admin side.