Results 1 to 4 of 4
  1. #1
    Join Date
    May 2009
    Location
    North Las Vegas, NV
    Posts
    44
    Plugin Contributions
    0

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

  2. #2
    Join Date
    Jul 2012
    Posts
    16,816
    Plugin Contributions
    17

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

    Quote Originally Posted by Mega Moonshine View Post
    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...

  3. #3
    Join Date
    Feb 2012
    Location
    mostly harmless
    Posts
    1,809
    Plugin Contributions
    8

    Default 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

  4. #4
    Join Date
    May 2009
    Location
    North Las Vegas, NV
    Posts
    44
    Plugin Contributions
    0

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

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

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

 

 

Similar Threads

  1. Replies: 0
    Last Post: 10 Mar 2013, 11:11 PM
  2. Replies: 0
    Last Post: 17 May 2011, 04:30 PM
  3. Version help with admin/includes/classes/order.php
    By Brent in forum General Questions
    Replies: 2
    Last Post: 4 Jan 2011, 03:25 PM
  4. Replies: 8
    Last Post: 6 Jan 2010, 02:34 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg