Page 1 of 2 12 LastLast
Results 1 to 10 of 19
  1. #1
    Join Date
    Sep 2012
    Location
    West Jefferson, NC
    Posts
    382
    Plugin Contributions
    0

    Default Fedex Web Services Language Files Updating

    ZC158
    Linux Ubuntu 20.04
    Mariadb 10.3
    PHP 8.0
    Apache 2.4
    No plugins

    I am trying to put my first plugin, fedex_web_services.5, into my fresh install of zc158.

    These are the help files I am using to try and modify the plugin:

    https://docs.zen-cart.com/dev/langua...anguage_files/
    https://docs.zen-cart.com/dev/plugin...language-files

    I located and commented out all of the "define" elements in each of the fedex files then moved and modified them into lang.fedexwebservices.php like this:

    PHP Code:
    $define = [
        
    'MODULE_SHIPPING_FEDEX_WEB_SERVICES_TEXT_TITLE' => 'FedEx',
        
    'MODULE_SHIPPING_FEDEX_WEB_SERVICES_TEXT_DESCRIPTION' => '<h2>FedEx Web Services</h2><p>You will need to have registered an account with FedEx and proper approval from FedEx identity to use this module. Please see the README.TXT file for other requirements.</p>',
        
    'MODULE_SHIPPING_FEDEX_WEB_SERVICES_TEXT_DESCRIPTION_SOAP' => '<h2>FedEx Web Services</h2><p><span style="color:#dd0000;">Warning: SOAP Extension is not enabled. FedEx Web Services Shipping Module will not work until SOAP is enabled. Ensure that PHP is compiled with SOAP. Speak to your hosting company if unsure.</span></p> <p>You will need to have registered an account with FedEx and proper approval from FedEx identity to use this module. Please see the README.TXT file for other requirements.</p>',
        
        
    'MODULE_SHIPPING_FEDEX_WEB_SERVICES_KEY' => '6W02EnQC0n9nO5NH',
        
    'MODULE_SHIPPING_FEDEX_WEB_SERVICES_PWD' => 'tmZlwVIuLUHGNtasKOHQYkKKd',
        
    'MODULE_SHIPPING_FEDEX_WEB_SERVICES_INSURE' => 0,
        
        
    'TRANSACTIONS_LOG_FILE' => '../fedextransactions.log',
        
    'Newline' => "<br />",
    ]; 

    return 
    $define
    Prior to this action, I tried changing the defines in all the fedex files but did I not seem to be having any luck with that. After reading the help files several times, it seemed that all defines should be in the language file (bad assumption?).

    At this point, I could, at least, get the admin>modules>shipping page to load semi-completely...only problem was the FedEx module does not display the module name and short name in the column next to it.

    I attempted to go ahead and install the plug in but nothing happened.

    So I searched each of the fedex files for $_SESSION['language'] to see if I needed to do the "Upgrading plugins to work with 1.5.8/PHP 8.0+" help file. The only place I found it was in shipping.php and it has already been modified according to the help files. It is also a core file so I left it alone.

    What am I missing?

    Thanks.

  2. #2
    Join Date
    Sep 2012
    Location
    West Jefferson, NC
    Posts
    382
    Plugin Contributions
    0

    Default Re: Fedex Web Services Language Files Updating

    Name:  admin-modules-shipping.jpg
Views: 1072
Size:  46.5 KB

    What admin>modules>shipping looks like...

  3. #3
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,621
    Plugin Contributions
    123

    Default Re: Fedex Web Services Language Files Updating

    You don't *have* to update the language files to the new format; the old format will still work.

    However, this plugin hasn't been updated in five years. You'll have to work with your developer to modernize it.

    You might also want to grab the latest one from Numinx - they don't always update their stuff in the plugins library when they re-release them.
    Last edited by swguy; 25 Oct 2022 at 01:41 PM. Reason: Numinix
    That Software Guy. My Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  4. #4
    Join Date
    Aug 2007
    Location
    Gijón, Asturias, Spain
    Posts
    2,571
    Plugin Contributions
    30

    Default Re: Fedex Web Services Language Files Updating

    >You don't *have* to update the language files to the new format; the old format will still work.
    In fact personally I prefer to keep all mods language files in the old format so in folder listings they are clearly separated from core files...makes comparisons easier.
    Steve
    github.com/torvista: Spanish Language Pack, Google reCaptcha, Structured Data, Multiple Copy-Move-Delete, Image Checker, BackupMySQL Admin/Auto...

  5. #5
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,621
    Plugin Contributions
    123

    Default Re: Fedex Web Services Language Files Updating

    On my todo list is adding guidance about this in the docs. In general, if a file doesn't override a core file, and it's in the old format, unless you're the plugin's owner you're better off leaving it as is (for comparisons if nothing else).
    That Software Guy. My Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  6. #6
    Join Date
    Sep 2012
    Location
    West Jefferson, NC
    Posts
    382
    Plugin Contributions
    0

    Default Re: Fedex Web Services Language Files Updating

    Appreciate the insight.

    I have destroyed my dev server install because I can not get any zc version to work with php 8.0.

    I will try again when and if I get over my disgust with the upgrade. Maybe more plugins will be brought up to date next time I try.
    Last edited by mikeel100; 26 Oct 2022 at 03:58 PM.

  7. #7
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,621
    Plugin Contributions
    123

    Default Re: Fedex Web Services Language Files Updating

    Upgrading is a complex process that requires skills that you might not have.
    Zen Cart has a Commercial Help Wanted forum where you can hire a contractor to do your upgrade for you. See

    https://www.zen-cart.com/forumdispla...al-Help-Wanted
    That Software Guy. My Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  8. #8
    Join Date
    Apr 2019
    Posts
    241
    Plugin Contributions
    0

    Default Re: Fedex Web Services Language Files Updating

    Hi @mikeel100, you can probably try my code. I modified several files for php8.0 and zc1.58. I tested it and it worked fine with no log generated. It is based on Numinix v1.8.1 (release date 1/22/2021).

    https://github.com/njcyx/fedexwebservices
    Last edited by njcyx; 26 Oct 2022 at 06:02 PM.

  9. #9
    Join Date
    Sep 2012
    Location
    West Jefferson, NC
    Posts
    382
    Plugin Contributions
    0

    Default Re: Fedex Web Services Language Files Updating

    Quote Originally Posted by njcyx View Post
    Hi @mikeel100, you can probably try my code. I modified several files for php8.0 and zc1.58. I tested it and it worked fine with no log generated. It is based on Numinix v1.8.1

    https://github.com/njcyx/fedexwebservice
    Now, that is what I call real help.

    Thanks.

  10. #10
    Join Date
    Sep 2012
    Location
    West Jefferson, NC
    Posts
    382
    Plugin Contributions
    0

    Default Re: Fedex Web Services Language Files Updating

    Quote Originally Posted by swguy View Post
    Upgrading is a complex process that requires skills that you might not have.
    Zen Cart has a Commercial Help Wanted forum where you can hire a contractor to do your upgrade for you. See

    https://www.zen-cart.com/forumdispla...al-Help-Wanted
    Nice try...I have been messing with this Cart since 1.3.8 and have never been as frustrated with an upgrade as with this one.

    I have skills enough to run and maintain a 100000 product store for 6 years.

    Yes, I need help once in a while...who doesn't?

    I don't need a contractor for a dev machine.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Replies: 5
    Last Post: 22 Jan 2018, 10:00 PM
  2. Fedex Web Services Issue
    By nishajh in forum Addon Shipping Modules
    Replies: 1
    Last Post: 18 Sep 2013, 08:08 PM
  3. v151 Numinix Fedex Web Services + Fedex LTL
    By Feznizzle in forum Addon Shipping Modules
    Replies: 4
    Last Post: 10 Jun 2013, 09:09 PM
  4. Replies: 0
    Last Post: 19 Dec 2012, 11:50 PM
  5. FedEx Web Services
    By markalpine in forum Addon Shipping Modules
    Replies: 1
    Last Post: 10 Jun 2011, 11:10 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR