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
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
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
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!
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!
Who is online
Users browsing this forum: No registered users and 31 guests