FedEx Ground Economy / SmartPost Shipping Module [Unofficial Discussion Thread]
Recently, we got a good deal from FedEx Ground Economy/Smartpost. I'm not sure why but the previous fedexwebservices plug-in doesn't quote Smartpost (I cannot find smartpost from the response log file). Then I noticed that Numinix offered a separate smartpost plug-in back in 2018. After trial and error period, finally I made it work. If you want to try my code, please find the link below.
https://github.com/njcyx/fedexsmartpost.git
The code was tested under zc 1.57d with php7.4. Not sure if anyone still use this service...
Numinix plug-in link:
https://www.numinix.com/zen-cart-plu...hipping-module
Changelog:
Updated code for PHP7.4
Corrected debug function. There are some lines of code for debugging but not working.
Updated the language to display Ground Economy instead of Smartpost
Used the newer pricing file (RateService_v31) instead of v10. Also changed the folder location for the pricing file so it can use the same file from fedexwebservices folder instead.
Next Step:
Probably try to combine two plug-ins together (fedexwebservices and smartpost). I compared the request log files and they looks slightly different.
Re: FedEx Ground Economy / SmartPost Shipping Module [Unofficial Discussion Thread]
Wait, this plug-in will still trigger some future PHP error warnings when the plug-in is not installed. After the plug-in is installed, no more warning.
PHP Warning: Use of undefined constant MODULE_SHIPPING_FEDEX_SMARTPOST_SORT_ORDER - assumed 'MODULE_SHIPPING_FEDEX_SMARTPOST_SORT_ORDER' (this will throw an Error in a future version of PHP) in /public_html/includes/modules/shipping/fedexsmartpost.php on line 14.
7 parameters are affected:
MODULE_SHIPPING_FEDEX_SMARTPOST_SORT_ORDER
MODULE_SHIPPING_FEDEX_SMARTPOST_TAX_CLASS
MODULE_SHIPPING_FEDEX_SMARTPOST_STATUS
MODULE_SHIPPING_FEDEX_SMARTPOST_KEY
MODULE_SHIPPING_FEDEX_SMARTPOST_PWD
MODULE_SHIPPING_FEDEX_SMARTPOST_ACT_NUM
MODULE_SHIPPING_FEDEX_SMARTPOST_METER_NUM
Tried some methods but no help. Not sure how to fix. Use "error_reporting(0);"
Re: FedEx Ground Economy / SmartPost Shipping Module [Unofficial Discussion Thread]
I just opened an issue (https://github.com/njcyx/fedexsmartpost/issues/1) on your github repo with a suggested solution.
Re: FedEx Ground Economy / SmartPost Shipping Module [Unofficial Discussion Thread]
Quote:
Originally Posted by
lat9
Hi @lat9, you saved my day! I tried your suggested code and it worked! No more warning at all.
I saw you also opened another two issues. I will take a look and do some tests...
Appreciate your help and guidance.
Re: FedEx Ground Economy / SmartPost Shipping Module [Unofficial Discussion Thread]
Quote:
Originally Posted by
lat9
For the other two issues you posted, I have updated the code according to your suggestion. Thanks again!
Re: FedEx Ground Economy / SmartPost Shipping Module [Unofficial Discussion Thread]
Github code updated, to correct issue that quote is still displayed for weight over 70lb.
Ground Economy can only ship from 1lb to 70lb.
https://www.fedex.com/en-us/shipping...d/economy.html
I have been able to add the ground economy code into the main fedexwebservices plug-in. So no need to use a separate plug-in any more.
https://www.zen-cart.com/showthread....cussion-Thread