Support » Plugin: WooCommerce » How to always load checkout shipping fields from customers profile?

  • Resolved roopemerikukka

    (@roopemerikukka)


    Is it possible to always load the shipping fields in checkout page from customers account?

    Example:

    1. Customer has set shipping address in his/her profile from account page
    2. Customer proceeds to checkout and changes the shipping address to something else
    3. Customer places an order
    4. Customer comes back and again proceeds to checkout
    5. Now the shipping address should still be same as set int step 1 but values are prefilled with ones from step 2 (The idea is to load the defaults always from the profile)

    I was able to prevent the checkout to overwrite the new shipping address in checkout with this hook:

    add_filter( 'woocommerce_checkout_update_customer_data', '__return_false' );

    Now the shipping address in account page stays as it was saved in step 1, but when the customer proceeds to the checkout, it fills the fields with values from last checkout. I think this has something to do with the checkout session but I wasn’t able to find a way to prevent that data being loaded from the session.

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.