PHP Error Notices
-
Hey guys,
We’re getting some error notices when running your plugin so we have disabled it until they are resolved.
Please advise if we are able to unset un-necessary fields (purchases are digital) with your plugin …
add_filter('woocommerce_checkout_fields' , 'override_checkout_fields'); function override_checkout_fields($fields) { unset($fields['billing']['billing_first_name']); unset($fields['billing']['billing_last_name']); unset($fields['billing']['billing_company']); unset($fields['billing']['billing_address_1']); unset($fields['billing']['billing_address_2']); unset($fields['billing']['billing_city']); unset($fields['billing']['billing_postcode']); unset($fields['billing']['billing_country']); unset($fields['billing']['billing_state']); unset($fields['billing']['billing_phone']); unset($fields['order']['order_comments']); unset($fields['billing']['billing_address_2']); unset($fields['billing']['billing_postcode']); unset($fields['billing']['billing_company']); unset($fields['billing']['billing_city']); return $fields; }
Many thanks,
Oliver
[03-Jan-2021 00:15:24 UTC] PHP Notice: Only variables should be passed by reference in wp-content/plugins/revolut-gateway-for-woocommerce/gateway-revolut.php on line 135
[03-Jan-2021 00:15:24 UTC] PHP Notice: Undefined index: ship_to_different_address in wp-content/plugins/woocommerce/includes/class-wc-checkout.php on line 652
[03-Jan-2021 00:16:01 UTC] PHP Notice: Only variables should be passed by reference in wp-content/plugins/revolut-gateway-for-woocommerce/gateway-revolut.php on line 135
[03-Jan-2021 00:16:01 UTC] PHP Notice: Undefined index: ship_to_different_address in wp-content/plugins/woocommerce/includes/class-wc-checkout.php on line 652
[03-Jan-2021 00:16:58 UTC] PHP Notice: Undefined index: section in wp-content/plugins/revolut-gateway-for-woocommerce/includes/class-wc-gateway-revolut.php on line 87
[03-Jan-2021 00:16:58 UTC] PHP Notice: Undefined index: section in wp-content/plugins/revolut-gateway-for-woocommerce/includes/class-wc-gateway-revolut.php on line 87
[03-Jan-2021 00:17:01 UTC] PHP Notice: Undefined index: section in wp-content/plugins/revolut-gateway-for-woocommerce/includes/class-wc-gateway-revolut.php on line 87
[03-Jan-2021 00:17:01 UTC] PHP Notice: Undefined index: section in wp-content/plugins/revolut-gateway-for-woocommerce/includes/class-wc-gateway-revolut.php on line 87
[03-Jan-2021 00:17:09 UTC] PHP Notice: Undefined index: section in wp-content/plugins/revolut-gateway-for-woocommerce/includes/class-wc-gateway-revolut.php on line 87
[03-Jan-2021 00:17:09 UTC] PHP Notice: Undefined index: section in wp-content/plugins/revolut-gateway-for-woocommerce/includes/class-wc-gateway-revolut.php on line 87
[03-Jan-2021 00:17:09 UTC] PHP Notice: Undefined index: section in /var/www/html/wp-content/plugins/revolut-gateway-for-woocommerce/includes/class-wc-gateway-revolut.php on line 87
[03-Jan-2021 00:17:09 UTC] PHP Notice: Undefined index: section in /var/www/html/wp-content/plugins/revolut-gateway-for-woocommerce/includes/class-wc-gateway-revolut.php on line 87
- The topic ‘PHP Error Notices’ is closed to new replies.