| 开发者 | zeejay90 |
|---|---|
| 更新时间 | 2026年11月10日 02:39 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
[woocommerce_checkout] checkout. The settings page tells you which one your store uses.
/wp-content/plugins/, or install it from the Plugins screen.WooCommerce changes those labels and whether they're required for each country, for example "ZIP Code" in the US and "Postcode" in the UK. To keep addresses valid, the plugin only lets you show/hide and reorder those fields.
Tick "Don't ask for an address when the cart only has virtual products" under WooCommerce > Settings > Checkout Fields. If every product in the cart is marked Virtual, checkout only asks for first name, last name, email and country. Country stays because WooCommerce uses it to calculate tax. If the cart has any physical product, the normal fields show. Developers can change which fields stay with the f64cfm_virtual_keep_fields filter.
No. Existing orders keep all their data. Hidden fields are just not asked for on new orders.