Page 1 of 1

Fedex module

Posted: Thu Apr 14, 2016 12:26 am
by burnsie90
Hello,
I am using Opencart version 2.0.3.1

The built in Fedex module doesn't seem to be calculating the box size that I have in my product info. The Fedex module has me fill in a box size, but I have many different sizes of boxes that I ship. Can anyone help me with this?

Thank you,
Kevin

Re: Fedex module

Posted: Thu Apr 14, 2016 7:09 am
by burnsie90
I found a work around that gets the prices at least close to actual shipping.

In my fedex.php file in \catalog\model\shipping\
I replaced:
$cost = $total_net_charge->getElementsByTagName('Amount')->item(0)->nodeValue;

With:
$precost = $total_net_charge->getElementsByTagName('Amount')->item(0)->nodeValue;

if($precost < 18) {
$cost = $precost * 1.45;
} elseif($precost >=18 && $precost < 30) {
$cost = $precost * 1.3;
} else {
$cost = $precost * 1.17;
}

It me not be the best way, but it will work for now. If anyone else has a better way, please let me know.

Thank you,
Kevin

Re: Fedex module

Posted: Sat Jul 01, 2017 7:17 am
by AllWeb
I'm trying to activate the FedEx module as well.
What information should I put in Post Code and Box Dimensions. The rest I generated from their website but I get an Error message once I activate the module with random numbers for Post Code and Box Dimensions.

Thanks!