• Resolved Oliver Campion

    (@domainsupport)


    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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author revolutbusiness

    (@revolutbusiness)

    Hi Oliver,

    Thanks for your question.

    This will be corrected in the next version of the plugin.

    Please note that these messages do not prevent the plugin from appropriately processing payments.

    Best regards,

    RevolutBusiness

    Thread Starter Oliver Campion

    (@domainsupport)

    Thank you for getting back to me. Please make sure the error on line 87 of /includes/class-wc-gateway-revolut.php is also corrected by using isset() function.

    To recap my conversation with Revolut Support in the Business App, you need to replace line 135 of /gateway-revolut.php with something like …

    if (!isset($json['ship_to_different_address'])) {
    $json['ship_to_different_address'] = '';
    }
    $new_error = new WP_Error();
    $errors = $validate_checkout->validate_checkout_shipping($json, $new_error);

    I would like to stress that in any other plugin, PHP Error Notices would be OK to ignore but this is a payment gateway to handle extremely sensitive personal payment data and it is therefore imperative that you do not seem to be nonchalant about them.

    We will activate your plugin again when the issues have been resolved.

    Finally, seeing as this issue has not yet been resolved, you should not have marked the thread as having been resolved.

    Oliver

    Thread Starter Oliver Campion

    (@domainsupport)

    Thank you for resolving the issues in this support thread however I’m afraid there is another issue relating to the terms and conditions tick box on the checkout page being ignored when not ticked.

    I have opened another support thread since you prematurely marked this one as resolved.

    Thank you,

    Oliver

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘PHP Error Notices’ is closed to new replies.