lat9 / upsoauth

A Zen Cart UPS shipping module that makes use of UPS' RESTful/Oauth API
GNU General Public License v2.0
3 stars 3 forks source link

language problem.... #36

Open proseLA opened 1 month ago

proseLA commented 1 month ago

is there a reason both of these files are here:

image

i am getting a duplicate constants error when using edit orders under zc v201.

proseLA commented 1 month ago

yeah, it looks like that other file is needed.

without the original language file, this does not work. with the original language file, edit orders chokes.

lat9 commented 1 month ago

Plus, the shipping module supports back to zc154, so the 'legacy' language file is needed.

For EO's current implementation, you'll need to run on PHP 8.2 (where the duplicate-constants are still warnings) and set Configuration :: Logging :: Report All Errors (Admin) to 'IgnoreDups'.

proseLA commented 1 month ago

ok, in my testing now, i think if we add this to the top of the upsoauth.php language file, we should be fine:

    if ((PROJECT_VERSION_MAJOR . '.' . PROJECT_VERSION_MINOR) >= '1.5.7') {
        return;
    }