• Resolved ajwish

    (@ajwish)


    Hi,

    We’ve been using your useful plugin for a good few years now. I’m going through the process of upgrading to WooCommerce 3.0 with WooCommerce UPS Shipping 3.2.3.

    However, when I’ve updated to 3.2.3 from 3.2.1, I no longer get any shipping options returned by the plug-in. I turned debugging on and the error is 111057 – wrong mesurements/units. The API request is sending LBS/IN when it should be sending KGS/CM.

    Our configuration is set to KGS/CM, but this is ignored. Changing it and changing it back has no effect.

    I had a look in the plug-in code, and in class-wc-shipping-up.php on line 1488 –

    “< Code >IN</Code >”

    Inches is being hard-coded into the request? The same is true for LBS on line 1497.

    I changed these lines to $this->dim_unit and $this->weight_unit instead, and sure enough – everything works again as it should (with KGS/CM).

    Please could you look into this? I don’t know if the fix that I have found might break other things, or if I’m misunderstanding something about how the plugin works?

    • This topic was modified 7 years, 6 months ago by ajwish.
    • This topic was modified 7 years, 6 months ago by ajwish.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Hard coded weights/dimensions’ is closed to new replies.