• There is an error that’s being thrown when our shopping cart is loading. After some poking around it seems that line 376 of settings-custom-shipping.php is calling get_shipping_classes incorrectly.

    You have…

    $shipping_classes = WC()->shipping->get_shipping_classes();

    If I change it to this it fixes the problem.

    $shipping_classes = WC()->shipping()->get_shipping_classes();

    My version of woocommerce is a few versions old but your plugin doesn’t look like its been updated for quite a while…. So I’m wondering if something changed in one of the more recent versions of woocommerce or php that would make this not work.

Viewing 1 replies (of 1 total)
  • Thread Starter sgumby

    (@sgumby)

    There’s a 2nd instance of this in class-wc-shipping-alg-custom.php on line 492. I’m not sure how to trigger that function so I can’t test it to see if its throwing the same error.

Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.