Hi @anpaostudio,
Orders created with shipping methods with the hide function enabled, won’t have a shipping address in the admin, emails or the order confirmation page after the checkout.
On the checkout page, the entire shipping address section (the “Ship to a different address?” checkbox included) should be hidden. I tested this with the default WooCommerce checkout page and with a number of themes. Can you please send me the URL of your website so I can take a look at the checkout page?
Thanks!
Hi, @ronald_edelschaap Thank you for your reply. That’s great!
This is our site: http://www.lostripthailand.com/tours/tokyo-disney-resort/
(sorry it’s in thai language. Please click the blue button beside “highlight” to open the product page , then adding the product to cart (blue button), finally click the green button in the cart popup to redirect to checkout page.) We checked the “hide..” at backend for local pickup (the second shipping class), but it is not work correctly.
For more information, we also test this in default woocommerce environment checkout page:
http://www.japanidea.ninja/product/amsterdam-crazy-weekend/
This site we have no woocommerce plugin activated. We set hide to both local pickup and free shipping, but the shipping address is not hide, either.
Please check it. Thank you for your time.
Best Regards,
Hi, I’m sorry. After some modification. the plugin works fine in the test site (default woocommerce environment checkout page). That’s my fault.
But we still have problem in our main site, please have a look.
It doesn’t add “shipping-fields-hidden” class and apply style=”display: none” to “woocommerce-shipping-fields-cnt”. It has no java error reported by chrome. We don’t know how to make the java function work correctly.
Best Regards,
Hi @anpaostudio,
I kinda hate to say it, but both sites seem to work fine. Also the checkbox is hidden when I try it out. See the following screenshots:
-
Shipping address fields visible
-
Shipping address fields hidden
Hi, @ronald_edelschaap,
Thank you for your kindness. I solved this issue by editing the phpmyadmin.
By some reasons, the postmeta table “woocommerce_local_pickup_setting” is not deleted when updating from woocommerce 2.5 to woocommerce 2.6. Then the local pickup class in wc 2.6 is named as “woocommerce_local_pickup_2_setting” in the table, that’s why it doesn’t work at first.
I deleted the old “woocommerce_local_pickup_setting” and renamed the new one. Everything is fine.
Anyway, thank you very much for this plugin!
#Another question: do you know how to show the shipping address in admin backend as “No shipping address set.” I could set this manually by deleted the address line of “shipping details”. Could you advice us how to do this automatically? The “shipping details” just duplicate from “billing details” even we hide the shipping address.
Best regards,