FedEx has changed API

From AVACTIS : Ecommerce Shopping Cart Software Wiki
Jump to: navigation, search

This article is for Avactis version 2.x and later

Problem: FedEx has stopped working.

Solution:

Download the FedEx.zip package from the Downloads section at your Help Desk account.


NOTE:This patch is created for Avactis version 2.x. Please, check your version.

1. Create a new directory on your PC and unzip the package.

2. Connect to your server.

3. Replace the following files with the files you have unpacked:

avactis-system\modules\shipping_module_fedex\shipping_module_fedex_api.php

avactis-system\modules\shipping_module_fedex\actions\update_fedex_settings_action.php

avactis-system\modules\shipping_module_fedex\views\fedex_input_az.php

avactis-system\admin\templates\modules\shipping_module_fedex\list.tpl.html


NOTES:

1. Create backup copies of the files before making the changes</span>

2. If you prefer applying patch instead of replacing files, use fedex.diff file</span>

4. Create the database dump. Use the phpMyAdmin tool in your hosting control panel to do it.

5. Execute the following queries to your database using phpMyAdmin:

replace into asc_sm_fedex_methods values (1,"FEDEX_2_DAY","FedEx 2nd Day","L","N");

replace into asc_sm_fedex_methods values (2,"FEDEX_EXPRESS_SAVER","FedEx Express Saver","L","N");

replace into asc_sm_fedex_methods values (3,"PRIORITY_OVERNIGHT","FedEx Priority Overnight","L","N");

replace into asc_sm_fedex_methods values (4,"STANDARD_OVERNIGHT","FedEx Standard Overnight","L","N");

replace into asc_sm_fedex_methods values (5,"FIRST_OVERNIGHT","FedEx First Overnight","L","N");

replace into asc_sm_fedex_methods values (6,"FEDEX_GROUND","FedEx Ground","L","N");

replace into asc_sm_fedex_methods values (7,"GROUND_HOME_DELIVERY","FedEx Home Delivery","L","N");

replace into asc_sm_fedex_methods values (8,"INTERNATIONAL_ECONOMY","FedEx International Economy","I","N");

replace into asc_sm_fedex_methods values (9,"INTERNATIONAL_FIRST","FedEx International First","I","N");

replace into asc_sm_fedex_methods values (10,"INTERNATIONAL_PRIORITY","FedEx International Priority","I","N");

replace into asc_sm_fedex_methods values (11,"FEDEX_2_DAY_AM","FedEx 2nd Day AM","L","N");

insert into asc_sm_fedex_settings values (,'SRVC_AUTH_KEY');

insert into asc_sm_fedex_settings values (,'SRVC_AUTH_PASS');

update asc_sm_fedex_settings set sm_fedex_setting_value = 's:14:"REGULAR_PICKUP"' where sm_fedex_setting_key = 'OPTS_DROP_OFF';

insert into asc_resource_labels values (,'FEDEX','SERVICE_AUTH_KEY','Account Key',);

insert into asc_resource_labels values (,'FEDEX','SERVICE_AUTH_PASS','Account Password',);

insert into asc_resource_labels values (,'FEDEX','ALERT_105','Account Key is empty',);

insert into asc_resource_labels values (,'FEDEX','ALERT_106','Account Password is empty',);

6. Clear the cache.

Now your FedEx module is up to date. Go to FedEx and obtain new access details.

7. Go to your store admin panel and open the Store settings->Shipping Settings/Methods> Federal Express page and insert your access details.

Go to the storefront and check the module.

If you find it difficult to apply the changes or need any help,Contact Avactis Support team.