• Resolved Sanjay

    (@sanjaysarraf)


    hi,
    Force shipping to the customer billing address is enabled. i want to integrate google survey opt-in on order received thank you page. but when i see browser console that says Error: delivery_country cannot be empty!this error message coming from google. so how can i show shipping address as well along with billing address which is used as same shipping address by enabling Force shipping to the customer billing address. https://prnt.sc/qosaks

    [ Please do not bump. ]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hello @sanjaysarraf,

    You can likely do this with a template override. I believe the file in use is this one from inside the WooCommerce plugin folder.

    
    /templates/order/order-details-customer.php
    

    You could copy that to your theme like this:

    
    /woocommerce/order/order-details-customer.php
    

    At the very top is this line which detects how shipping is set up.

    
    $show_shipping = ! wc_ship_to_billing_address_only() && $order->needs_shipping_address();
    

    You could change that to “true” and that should load the shipping address on the thank you page.

    
    $show_shipping = true;
    

    I ran a quick test on my development site and that appeared to work for me.

    Cheers

    Hi @sanjaysarraf,

    It’s been a while since we heard from you, so I’m marking this thread resolved. Hopefully, you’ve been able to resolve this, but if you haven’t, please let open up a new topic and we’ll be happy to help out.

    Cheers!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Show Shipping address on thank you page.’ is closed to new replies.