If this is your first visit, check our documentation. To post, register or login.
Forums / Bug Reports / get_template_dir in admin

get_template_dir in admin

Locked

Started by stagebrace on 9 Sep 2006, 12:56 PM · Views: 3,103

Results 1 to 2 of 2
This thread is locked. New replies are disabled.
9 Sep 2006, 12:56 PM
#1
stagebrace avatar

stagebrace

Totally Zenned

Join Date:
Jan 2005
Location:
Tennessee
Posts:
985
Plugin Contributions:
0

get_template_dir in admin

includes\languages\english\modules\shipping<your template>
The files in the above folder are used when shopping, but not in admin.

move your favorite language shipping file up to <your template>. Go to Admin>Shipping Modules and see the code complaint at <your admin>/modules.php on line 174

    include(DIR_FS_CATALOG_LANGUAGES . $_SESSION['language'] . '/modules/' . $module_type . '/' . $file);

I do not see a get_template_dir in admin. Probably on hold untill the admin rewrite?

14 Sep 2006, 6:53 PM
#2
drbyte avatar

drbyte

Sensei

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

Re: get_template_dir in admin

stagebrace:

move your favorite language shipping file up to <your template>.um ... it would be more consistent to "copy" the file, rather than "move" it. And that would prevent the error with respect to not being able to find the file.

I do not see a get_template_dir in admin. Probably on hold untill the admin rewrite?
Correct.

.
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.