• Resolved egusplosion

    (@egusplosion)


    I have removed the country field from the checkout page in woocommerce by adding this code.

    /**

    • Remove the country checkout field */

    function njengah_override_checkout_fields( $fields ) {

    unset($fields[‘billing’][‘billing_country’]);

    return $fields;

    }

    add_filter(‘woocommerce_checkout_fields’,’njengah_override_checkout_fields’);

    Then I tested to see if I could checkout without any problems, but after I clicked to order in checkout, the screen froze and I could not reach the Thank You page.

    I really don’t need country section.

    How can I fix this?

Viewing 1 replies (of 1 total)
  • Saif

    (@babylon1999)

    Hello @egusplosion,

    Most gateway plugins require the billing address to be passed to process transactions and I believe Square is no different.

    Since this is something from Square, I will recommend you contact them or hire a WooExpert. Although I highly doubt there’s a workaround.

    Cheers!


Viewing 1 replies (of 1 total)
  • The topic ‘I have removed the country field and got bugs.’ is closed to new replies.