Some sites offer both virtual and physical products.
In this case, the postal address fields are systematically required for the buyer.
But these fields aren’t useful if the customer is only buying virtual products… and that hurts conversions.
So I think it would be interesting to add a feature to not ask for the address in the billing part of the order form if there is no shipment.
A few plugins allow this to be done, but all of the ones I’ve tried have an error (described here: https://wordpress.org/support/topic/undefined-text-on/#post-16600916) arising from expected behavior for digital products.
Last updated: March 28, 2023
Log in to comment on this feature request.
For the classic (shortcode) checkout, this is a small snippet: hook into woocommerce_checkout_fields, check if ( ! WC()->cart->needs_shipping() ), and unset billing_address_1, billing_address_2, billing_city and billing_state. As others have said, I’d keep billing_country and billing_postcode, because tax rules for digital goods and card fraud checks (AVS) often depend on them. Removing them entirely can cost more in chargebacks than it saves in conversions.
The block checkout is harder, because it doesn’t use that filter, which is why a lot of older snippets and plugins break there.
If you want something that works for mixed carts (address fields only when a physical product is in the cart, optional rules for free orders, country and postcode kept for tax), we recently built Pluginora, a platform that builds focused WooCommerce plugins like this from a plain-English description: https://pluginora.com. It’s a fixed one-time price ($9-$39), no licence key or renewal, and you can test it on a private practice site for $1 before buying, which is useful for checking it against your own theme and payment gateway.
In the USA, some states require collecting taxes on digital items. The address is important to determine the correct jurisdiction and calculate any necessary taxes. Making the address optional for stores that don’t need it would be great, but I wouldn’t want it to go away entirely.
“If they have a voucher to get it for free I’d like to remove the pain of having to put in their address for a digital downlad.” – This makes sense as a free digital doesn’t go through payments processing thus shouldn’t require any address. The same requirement for a paid product and risk management isn’t present.
“An address is required for processing card payments, isn’t it? This is the billing address. It’s used for confirming the card details for fraud prevention and other security purposes. When I have digital products, it only asks for billing address and not shipping address.
This is correct. Shipping is not required but for fraud checks, especially merchants and/or gateways doing Address Verification, personal information such as a postal code are part of the overall risk assessment and protecting merchants from chargebacks.
If they have a voucher to get it for free I’d like to remove the pain of having to put in their address for a digital downlad.
In the classic checkout it’s possible to remove fields with a PHP snippet. Here’s an example from my plugin that gets rid of the address for free orders. You could tweak it to remove the cart total check: https://github.com/helgatheviking/wc-remove-billing-address-on-free-checkout/blob/trunk/wc-remove-billing-address-on-free-checkout.php#L32
However, this won’t work for the new block-based checkout as that only just recently got extensible and I haven’t figured out how to do that part yet.
Most payment options do not require a billing address. On my setup I have some specific funnels for digital products and they supress all the address fields on Woocommerce checkout and it is working great. And even if there are some plugins as workaround, I think that should be core and allowing those fields to be optionoal, depending on product, shipping options and maybe even payment methods used (maybe not even needed).
An address is required for processing card payments, isn’t it? This is the billing address. It’s used for confirming the card details for fraud prevention and other security purposes. When I have digital products, it only asks for billing address and not shipping address.
important feature but free plugins available for that so better vote for other functions to implement.
It should be optional
Not only for virtual products, but also for “PickUp” options, or other mothods that do not require filling up and address. Maybe check box on the shipping method “requires shipping address” ??
Same
I fourth the request :). It seems very strange that this isn’t already available, must be many stores that have both physical and digital products :).
I third that request!
I second this request! I get a lot of feedback from customers that are not thrilled about needing to provide their address while checking out a digital product.