Bit of a newbie here, so I apologise if this issue's been raised before (I couldn't find it on a search). I've only been using zencart for a couple of weeks but, together with this Royal Mail Shipping Module, it's been great despite the learning curve.
The problem I have is with the Standard Parcels bit of this module. It works fine until you get to a weight that's over 6Kg - then it won't offer Standard Parcels as an option.
I've trawled through the code and think I've figured out where the problem is - well, I think I know how to solve it.
The shipping rates are listed at:
1:3.85
1.5:4.95
2:5.31
4:4.70
6:8.74
8:9.97
10:10.70
20:12.46
It seems to me that the code only looks at the first 5 weights (1, 1.5, 2, 4 and 6kg) and not the other three (8, 10, and 20kg). That's if I'm reading the code correctly. For example, rmstdparcels100.php shows:
Code:
$zones_cost = constant('MODULE_SHIPPING_RMSTDPARCELS100_ZONES_COST0_' . $dest_zone)
. ',' . constant('MODULE_SHIPPING_RMSTDPARCELS100_ZONES_COST1_' . $dest_zone)
. ',' . constant('MODULE_SHIPPING_RMSTDPARCELS100_ZONES_COST2_' . $dest_zone)
. ',' . constant('MODULE_SHIPPING_RMSTDPARCELS100_ZONES_COST3_' . $dest_zone)
. ',' . constant('MODULE_SHIPPING_RMSTDPARCELS100_ZONES_COST4_' . $dest_zone);
but in the SQL database there are
MODULE_SHIPPING_RMSTDPARCELS100_ZONES_COST0_1
MODULE_SHIPPING_RMSTDPARCELS100_ZONES_COST1_1
MODULE_SHIPPING_RMSTDPARCELS100_ZONES_COST2_1
MODULE_SHIPPING_RMSTDPARCELS100_ZONES_COST3_1
MODULE_SHIPPING_RMSTDPARCELS100_ZONES_COST4_1
MODULE_SHIPPING_RMSTDPARCELS100_ZONES_COST5_1
MODULE_SHIPPING_RMSTDPARCELS100_ZONES_COST6_1
MODULE_SHIPPING_RMSTDPARCELS100_ZONES_COST7_1
This applies equally to the other Std Parcels modules. It seems to me that adding the other three (ZONES_COST5, ZONES_COST6, and ZONES_COST7) into the code would fix it but, being a bit green at this, I don't want to fiddle with the code. The easiest solution is to put multiple values in the first five boxes and leave the remaining three empty, i.e.:
1:3.85, 1.5:4.95, 2:5.31
4:7.70, 6:8.74, 8:9.97
10:10.70
20:12.46
(other boxes left blank)
Now the shipping estimator show shipping prices for weights over 6Kg.
Hope this helps someone.
JSR
Bookmarks