Uncaught Error: Call to a member function get_shipping_classes()
-
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.
You must be logged in to reply to this topic.