• Resolved jlahm

    (@jlahm)


    I get a warning message of “PHP Warning: Invalid argument supplied for foreach() in xxx/wp-content/plugins/woocommerce-services/woocommerce-services.php on line 1115” if I set Shipping Locations to “Disable shipping and shipping calculations”. I’ve fixed it by changing line #1113 to:
    $shipping_rates = $shipping_packages[‘rates’] ?? array();

    Minor issue, but easily fixed.

Viewing 1 replies (of 1 total)
  • Hi @jlahm

    Thanks for reaching out!

    I’m glad you were able to find a solution to your issue here and thanks for sharing it with the community too! ??

    I will be marking this thread as resolved. Should you have further inquiries, kindly create a new topic here.

    Thanks!

Viewing 1 replies (of 1 total)
  • The topic ‘Warning message if no shipping’ is closed to new replies.