اے پلگ ان hasn’t گوں ورڈپریس ءِ نوکیں 3 مزنیں ریلیزاں آزمائش کنگ بوتگ۔ اے دگہ برجاہ دارگ یا حمایت نہ کنگ بیت ءُ ورڈپریس ءِ نوکیں ورژنانی گوں کارمرز کنگ ءِ وھد ءَ مطابقت ءِ جیڑھ بوت کنت۔

Remove WooCommerce Billing Address Fields for Free Checkout

سرجمیں

It can be a hassle to fill out your billing address if you aren’t actually paying any money. This plugin removes the billing address fields from WooCommerce checkout when the cart total is 0, ie: Free.

Specifically the following fields are removed:

  1. billing_address_1
  2. billing_address_2
  3. billing_city
  4. billing_state
  5. billing_postcode
  6. billing_country
  7. billing_phone

That’s it!

Support

Support is handled in the WordPress forums. Please note that support is very limited. Before posting a question, please confirm that the problem still exists with a default theme and with all other plugins disabled.

Please report any bugs, errors, warnings, code problems to Github

اسکرین شاٹ

انسٹالیشن

  1. Upload the plugin folder to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress

جُست ءُ پُرس

How to exclude billing phone field from removal?

To achieve this you can add the following snippet to your theme’s functions.php or via the Code Snippets plugin.

/**
 * Do not remove billing phone
 *
 * @param array   $fields    The billing fields we are removing
 * @return array
 */
function kia_do_not_remove_billing_phone( $fields ) {
    return array_diff( $fields, array( 'billing_phone' ) );
}
add_filter( 'wc_billing_fields_to_remove_for_free_checkout', 'kia_do_not_remove_billing_phone' );

جائزہ

مئی 2, 2022 1 جواب دنت
WOW thank you for this miracle lol
ستمبر 21, 2020
Fast and easy solution
جُلائی 16, 2020 1 جواب دنت
And there aren't any instructions to fix it so I'll have to use something else. 😕
اپریل 24, 2020
A great improvement to the user experience for free products. Thank you for turning this into a plugin!
کلیں 5 جائزہ ئا پڑھ

کمک کنوک & دیمروئی کنوک

“Remove WooCommerce Billing Address Fields for Free Checkout” اوپن سورس سافٹ ویئر اِنت۔ اے پلگ ان ءِ تہا رند ءِ مردماں وتی کرد پیلو کتگ۔

کمک کار

“Remove WooCommerce Billing Address Fields for Free Checkout” ءَ وتی زبان ءَ رجانک کن اِت۔

دیمروئی ءِ تہا دلچسپی داریت؟

کڈ ءَ براؤز کن اِت، SVN ءِ ذخیرہ ءَ بچار اِت، یا دیمروئی ءِ لاگ ءَ RSS ءِ وسیلہ ءَ سبسکرائب بہ کن اِت۔

چینج لاگ

2021-12-28 – 1.0.1

  • New: Introduce wc_billing_fields_to_remove_for_free_checkout filter.
  • Fix: Do not remove address when shipping is required. Fixes “Please enter an address to continue.” error on checkout.

1.0

  • Initial release.