• Resolved pt51

    (@pt51)


    Hi, I deleted the shipping_lastname field and use only the shipping_firstname field
    When the order is submitted, the shipping_lastname field is automatically populated from the billing_lastname field
    How can I disable this autofill?
    Thank you

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hello @pt51 ,

    That’s interesting.

    Before I can investigate further, can you please share a little more details on how did you remove the “shipping_lastname field”.

    If you have used any PHP or CSS code, share that as well.

    Thank you ??

    Thread Starter pt51

    (@pt51)

    hi!
    i removed the field with WooFunnels. Let’s say the field still exist but in the checkout it is not shown. I specify that this problem also happens for new customers.

    Hello @pt51 ,

    Okay, it’s hard to tell how the plugin WooFunnels is removing the sipping last name field as I do not have access to this plugin. I have used WooCommerce’s suggestion on removing the shipping fields from here – Customizing checkout fields using actions and filters

    I am using this code in my theme’s functions.php file –

    add_filter( 'woocommerce_checkout_fields', 'customize_woo_checkout_fields' );
      
    function customize_woo_checkout_fields( $fields ) {
    
    	unset( $fields['shipping']['shipping_last_name'] );
    
        return $fields;
    
    }

    When I checkout I only put my last name on the billing form and after the order, I do not get auto-filled on the shipping details – https://prnt.sc/106xm4z.

    So, you can try the above code on your site. I hope it will work. If not, then the plugins you are using can be the reason behind it. You can do a conflict test to figure out the problematic plugin.

    Thank you ??

    Thread Starter pt51

    (@pt51)

    Hi,
    I was using the same snippet with no success.
    I tried to do some conflict tests and I found the conflict
    Thanks so much for the support!
    Specifically it doesn’t work with Woofunnels

    Awesome!

    I am glad that it was helpful. I am going to mark this thread as resolved. If you have any other queries, feel free to open a new thread.

    Thank you ??

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Problems with shipping address’ is closed to new replies.