Forums / General Questions / Clarification for ADMIN Classes referenced in: init_currencies.php

Clarification for ADMIN Classes referenced in: init_currencies.php

Views: 644

Results 1 to 4 of 4
27 Aug 2014, 5:12 AM
#1
mega_moonshine avatar

mega_moonshine

New Zenner

Join Date:
May 2009
Location:
North Las Vegas, NV
Posts:
44
Plugin Contributions:
0

Clarification for ADMIN Classes referenced in: init_currencies.php

Using ZC v1.5.3 and adding a plugin/mod (Edit Orders v4.1.4)

While comparing the plugin/mod version for the file admin/includes/init_includes/init_currencies.php with the default version in v1.5.3, I noticed the following:

ZC v1.5.3 original/untouched has the line:

require(DIR_FS_CATALOG . DIR_WS_CLASSES . 'class.currencies.php');

Yet the (original v1.5.3) folder/directory under admin/includes/classes has only the following file(name):

currencies.php

and not one named: class.currencies.php

That being the case, is there a problem here?

What does it need to be, to be accurate and not throw an error or warning?

That is:

require(DIR_FS_CATALOG . DIR_WS_CLASSES . 'class.currencies.php');

or this:

require(DIR_FS_CATALOG . DIR_WS_CLASSES . 'currencies.php');

Thanks in advance for clarifying...

27 Aug 2014, 6:01 AM
#2
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Clarification for ADMIN Classes referenced in: init_currencies.php

Mega Moonshine:

Using ZC v1.5.3 and adding a plugin/mod (Edit Orders v4.1.4)

While comparing the plugin/mod version for the file admin/includes/init_includes/init_currencies.php with the default version in v1.5.3, I noticed the following:

ZC v1.5.3 original/untouched has the line:

Yet the (original v1.5.3) folder/directory under admin/includes/classes has only the following file(name):

currencies.php

and not one named: class.currencies.php

That being the case, is there a problem here?

What does it need to be, to be accurate and not throw an error or warning?

That is:

require(DIR_FS_CATALOG . DIR_WS_CLASSES . 'class.currencies.php');

or this:

require(DIR_FS_CATALOG . DIR_WS_CLASSES . 'currencies.php');

Thanks in advance for clarifying...

Does edit orders add a class.currencies.php file into the associated admin directory? The default ZC 1.5.3 as identified above and not confirmed is loading the class.currencies.php from the store not from the admin. As for edit orders, if it adds it's own then, it will likely call it's own; however, might want to check the plugins thread to see if this is addressed. Does that clarify nything for you?

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

27 Aug 2014, 9:10 PM
#3
lhungil avatar

lhungil

Totally Zenned

Join Date:
Feb 2012
Location:
mostly harmless
Posts:
1,818
Plugin Contributions:
4

Re: Clarification for ADMIN Classes referenced in: init_currencies.php

Zen Cart 1.5.x has a typo in "admin/includes/init_includes/init_currencies.php". This file is not currently used by any other core Zen Cart files (and therefore does not cause any severe issues to a stock installation of Zen Cart 1.5.x). The file appears to be scheduled for removal in Zen Cart 1.6+. https://github.com/zencart/zencart/issues/112

Edit Orders 4.1.4 DOES use this file. The distribution zip for Edit Orders 4.1.4 includes a corrected version of this file (inside the modified_files folder). Basically just fixing the name of the file required for using the currencies class.

The glass is not half full. The glass is not half empty. The glass is simply too big!
Where are the Zen Cart Debug Logs? Where are the HTTP 500 / Server Error Logs?
Zen Cart related projects maintained by lhûngîl : Plugin / Module Tracker

1 Sep 2014, 7:37 PM
#4
mega_moonshine avatar

mega_moonshine

New Zenner

Join Date:
May 2009
Location:
North Las Vegas, NV
Posts:
44
Plugin Contributions:
0

Re: Clarification for ADMIN Classes referenced in: init_currencies.php

@lhungil - Thanks! Sorry for delay, had a great Labor Day weekend. :D

To recap, the answer is (for the Edit Orders v4.1.4 mod) that it provides the corrected line:

require(DIR_FS_CATALOG . DIR_WS_CLASSES . 'currencies.php');

As the logs folder never had any error files for this, it is what I thought and had used, just wanted to be sure by asking the experts...