09
Feb
In the article, we are featuring the 10 best WooCommerce plugins at XAdapter Marketplace. We are a unique marketplace where... read more
12
Dec
WooCommerce Print Invoice, Packing Slip, Delivery Note & Label Plugin helps you to generate and print Invoices, Packing List,... read more
26
May
During WooCommerce checkout, there are number of countries (Afghanistan, Poland, etc ) for which state field does not show... read more
26
Dec
Customer :
Does DHL Express shipping plugin have tracking information feature as well?
Support :
Our DHL Express has tracking information feature as... read more
07
Nov
The code facilitates you to add the purchase order, invoice, customer reference, and department numbers on shipment label.
Add the... read more
30
Jun
Flat rate shipping means the same shipping charge (for example US$ 5.00) would be applicable to all packets of... read more
20
Jun
Marijn has setup a prolific eCommerce store. He has all the products set up on WooCommerce platform. As a... read more
16
Feb
The Internet has transformed the six inhabited continents into one. Boundaries in the marketplace are no longer valid. With the... read more
07
Sep
WooCommerce Print Invoice, Packing Slip, Delivery Note & Label Plugin helps you to generate and print Invoices, Packing List,... read more
24
Jun
Below code snippet will change the default country and state when a new customer lands on checkout page. If... read more
Comments (9)
Good evening, I am trying to use your method but it does not work for me at any time, this version designed in the concrete version of woocommerce? I want to do it with a local environment, without free shipping, but I do not understand why you put free_shipping:1, the number 1 where it comes from?
Greetings and thanks
Hi,
This snippet is designed to hide checkout fields based on the ‘Shipping method’ value(free_sipping:1 is the value of that method). You can get the shipping method value by inspecting a shipping method.
– Select a shipping method –> Right Click–> Inspect–> You can see the ‘Value’ of that method.
hey. how can you make it so you dont have to refresh the page when switching shipping methods
Hi Justin,
Once the hipping method is selected the values will be shown based on this Method. However, when you switch to any other method, WooCommerce will show the previously cached values. Hence, in order to avoid displaying cached values, you would need to refresh the page.
I am trying to get this to work when using the table rate plug-in. I want to hide the shipping address if the following is true:
I have been trying it by setting my shipping_method=’table_rate:10:1′, but that is clearly not right. Ideas?
Hi @carin,
This snippet will hide only specific fields of Billing address.
However, you do have an option to change the default shipping destination fields in WooCommerce shipping options.
WooCommerce–> Shipping Options–> Shipping Destination –> (select) Default to customer billing address.
Once done, “Ship to a different address” will not checked by default.
Hope that helps!
Thank you Anindo for the reply.
Hiding in checkout a custom_field based on ‘Payment method’ is tricky? 🙁
Ho good!
Regards,
Great tutorial!
thanks.
But how can i hide field based on gateway choice?
$payment_method instead of #shipping_method ???
Hi,
This snippet is designed to hide checkout fields based on ‘Shipping method’ only.
Also it would not be practically possible to hide any checkout fields based on ‘Payment method’. This is because, you will be directed to ‘Payment method’ only after you complete the initial process of filing in checkout fields.
Hence, hiding checkout fields based on ‘Payment method’ is quite tricky to acheive.
Regards,