Post by burnsie90 » Thu Apr 14, 2016 12:26 am

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

Newbie

Posts

Joined
Wed Mar 30, 2016 12:57 am

Post by burnsie90 » Thu Apr 14, 2016 7:09 am

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

Newbie

Posts

Joined
Wed Mar 30, 2016 12:57 am

Post by AllWeb » Sat Jul 01, 2017 7:17 am

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!

Newbie

Posts

Joined
Sat Jul 01, 2017 7:13 am

Who is online

Users browsing this forum: No registered users and 31 guests