ZC 1.5.5e, php 5.6
I just noticed two shipping options, zones and perweightunit, both are not functioning correctly on my site. These are both relatively rarely used methods for us, used for calculating special shipping rates to Canada and Hawaii, respectively.
It seems to me the root cause of this is an error with the number of shipping boxes being calculated, which always returns "0" as number of boxes, no matter what value is in place as the maximum package weight. So with "0" as the number of packages, any weight based shipping calculation returns $0.00+handling fee. Ex:
Code:
...(Weight Based Rate to CA (0 x 3.53lb(s))) $0.00
Actual shipping table for zone 1 is "5:12.95,10:43.95,40:86.95,100:178.95"
The zone table settings work fine if I change the calculation method to either "price" or "item."
This error apparently started in the past week or two without me noticing--I have record of an order from about two weeks ago successfully using zone rates shipping. But I don't have record of changing any of php files on the site between that successful order and now.
I have tried to trace this back to "$shipping_num_boxes" or "$zc_boxes," even tried hardcoding "$zc_boxes = 1;" and the problem persists.
There are no error logs. FedEx, Flat Rate, and Free Shipping Options modules are all still working normally.
I thought it might be a database error, but the problem also exists on my dev site which has its own database.
Any help or pointing in the right direction would be greatly appreciated! What combination of settings could I have screwed up to make this happen? I can't figure out what is going on.
Bookmarks