• Resolved frischi

    (@frischi)


    Hello,

    I am currently trying to set up a store. I would like the customer to only have to enter the billing address if it is the same as the delivery address. So he leaves the empty checkbox for the delivery address unchecked and sends the order. The setting for this process is probably: “Default to customer billiig address”

    With this option, the checkbox is initially empty. Only if the buyer wants to enter a different address is it checked and the additional delivery address form is filled in.

    Unfortunately, I have the problem that no delivery address is entered in the order details after such an order. It just says: “No delivery address specified.”

    This is why the automatic sync of the address with cjdropshipping does not work.

    If I use the other option “Default to customer shipping address”, the address is filled in in the order details after the purchase, even if the customer has not entered anything there. So he has simply deactivated the initially activated checkbox and simply closed the empty delivery address form because the address matches the billing address.

    So the sync of the address works automatically with cjdropshipping.

    So my question now is whether the delivery address can be filled in automatically in the backend with the first option “Default to customer billiig address”.

    Or perhaps you have another suggestion as to how I could solve the problem. I find the second option rather unfortunate in terms of usability, as the user then always has to close an unnecessary checkbox.

    So let’s go back to understanding. In both cases, exactly the same thing is actually saved. The buyer only fills out the invoice form and leaves the delivery address form empty. The checkbox is also empty when saving. The only difference is that the buyer has to take action himself in the second step and deactivate the checkbox. Isn’t this a bug, that although the same thing is saved, something else is saved in the order details in the backend? In any case, it causes considerable problems. I hope we can solve this somehow. Could you perhaps go into some action or filter hook so that the delivery address is really filled with the data on the first pass?

    I would really appreciate any help. Thanks in advance.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Shameem R. a11n

    (@shameemreza)

    Hi @frischi,

    Thanks for sharing detailed explanation.

    In WooCommerce, the “Default to customer billing address” option is designed to allow the customer to input a different shipping address if needed, but it doesn’t automatically copy the billing address to the shipping address field if left unchecked. This is why you’re seeing “No delivery address specified”.

    However, could you try setting the shipping destination to the “Force shipping to the customer billing address” option and see whether it resolved the issue or not?

    Let us know how that goes. Looking forward to helping you.

    Thread Starter frischi

    (@frischi)

    Thanks for your answer.

    I tried that, but then the user does not have the opportunity to use a different shipping address if needed.

    It would be great if the shipping address could simply be filled in if the checkbox is not activated.(when “Default to customer billiig address” is used)

    If the user deactivates the checkbox (when “Default to customer shipping address” is used), the shipping address get filled. That makes me crazy. Maybe there is a hook to force the address to be filled in? Or there is another way to realize that?

    Hey, @frischi!

    Maybe there is a hook to force the address to be filled in? Or there is another way to realize that?

    If you want to do it exactly as you explained here, you might be able to achieve this with custom code.

    While we can’t provide support for code customization as per our support policy, we do our best to offer advice and direct you to appropriate resources.

    You can visit the WooCommerce Facebook group or the #developers channel of the WooCommerce Community Slack. We’re lucky to have a great community of open-source developers for WooCommerce, and many of our developers hang out there too.

    Having said that, if you use the checkout block, you can have a checkbox marked by default that makes the shipping and billing address the same. And then if the customer needs to have two different addresses, they can uncheck it and add it. The thing is that it asks for the shipping address by default, so it would be a bit different than what you explained. But maybe it can fit your needs.

    Here’s a screenshot:

    If you are interested in checking it out, you can do it by going to your checkout page and adding the checkout block.

    You can find more about this in this guide.

    Have a wonderful day!

    We haven’t heard back from you in a while, so I’m going to mark this as resolved – we’ll be here if and/or when you are ready to continue.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘shipping address empty when “Default to customer billiig address”’ is closed to new replies.