• Resolved Tayfun

    (@tayfunkazanci)


    Hello, I have been having the problem of my customers leaving the cart on my website for a while.
    
    My customers are getting the error that the shipping region is not selected. and after installing and uninstalling this plugin it started to happen
    
    Now I found a log like below, what should I do about it.
    
    Something started to go wrong with my cart page

    [2021-07-05 13:41:00] wpdesk.DEBUG: Sender payload: {“click_action”:”plugin_deactivation”,”plugin”:”flexible-checkout-fields\/flexible-checkout-fields.php”,”plugin_name”:”Flexible Checkout Fields”,”reason”:”broke_my_site”} {“source”:”wpdesk-sender”} []
    [2021-07-05 13:41:01] wpdesk.DEBUG: Sender response: {“headers”:[],”body”:””,”response”:{“code”:false,”message”:false},”cookies”:[],”http_response”:null} {“source”:”wpdesk-sender”} []

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Tayfun

    (@tayfunkazanci)

    I also saw it in another support question. Will this code work for me?

    add_filter( ‘woocommerce_billing_fields’, ‘remove_account_custom_fields’, 1000 );
    function remove_account_custom_fields( $fields ) {
    if ( is_wc_endpoint_url(‘edit-address’) ) {
    $field_ids = array(‘billing_last_name’, ‘billing_company’, ‘billing_address_2’, ‘billing_city’);
    foreach ( $field_ids as $field_id ) {
    if( isset($fields[$field_id]) ) {
    unset($fields[$field_id]);
    }
    }
    }
    return $fields;
    }

    Plugin Support Tomasz WP Desk

    (@tomaszwp)

    Hello @tayfunkazanci

    The code provided in the first message is information in the logs that the plugin has been removed and what was the reason for uninstalling it. It has nothing to do with whether the form has errors or not.

    Please provide a screenshot with the visible message that customers see. I mean a message about an unselected shipping region.

    The code provided in the second message hides the fields on the Edit Address subpage. It should work but we recommend to be careful when hiding fields with filters.

    Plugin Support Tomasz WP Desk

    (@tomaszwp)

    I am marking this topic as resolved as we have not received any new replies.

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