• When ordering a product without shipping, because it is virtual, I get the error below:

    PHP Notice: Undefined index: shipping_country in /htdocs/wp-content/plugins/woo-postnl/includes/class-wcpn-postcode-fields.php on line 740

    I think that a isset() check in the validate_address_fields() function will solve the problem.

    Using WordPress 5.8, with WooCommerce PostN 4.3.3 and WooCommerce 5.6.0.

  • The topic ‘Undefined index: shipping_country because of product that won’t be shipped’ is closed to new replies.