Ans :
In WooCommerce there is no built-in function to remove checkout fields and billing details heading from checkout page. So we remove these fields pragmatically using hooks supplied by Woocommerce.
What you need to do is open your child theme's functions.php file and write the following code.
functions.php
// Removing checkout fields
add_filter( 'woocommerce_checkout_fields' , 'wc_remove_checkout_fields' );
function wc_remove_checkout_fields( $fields ) {
unset($fields['billing']['billing_first_name']);
unset($fields['billing']['billing_last_name']);
unset($fields['billing']['billing_company']);
unset($fields['billing']['billing_address_1']);
unset($fields['billing']['billing_address_2']);
unset($fields['billing']['billing_city']);
unset($fields['billing']['billing_postcode']);
unset($fields['billing']['billing_country']);
unset($fields['billing']['billing_state']);
unset($fields['billing']['billing_phone']);
unset($fields['order']['order_comments']);
unset($fields['billing']['billing_address_2']);
unset($fields['billing']['billing_postcode']);
unset($fields['billing']['billing_company']);
unset($fields['billing']['billing_email']);
unset($fields['billing']['billing_city']);
return $fields;
}
// Removing billing details heading and additional information text
add_filter( 'gettext', 'wc_billing_field_heading', 20, 3 );
function wc_billing_field_heading( $translated_text, $text, $domain ) {
switch ( $translated_text ) {
case 'Billing details' :
$translated_text = __( '', 'woocommerce' );
break;
case 'Additional information' :
$translated_text = __( '', 'woocommerce' );
break;
}
return $translated_text;
}
The above code will remove all billing fields and billing field heading. Change the code according to your choice.
In WooCommerce there is no built-in function to remove checkout fields and billing details heading from checkout page. So we remove these fields pragmatically using hooks supplied by Woocommerce.
What you need to do is open your child theme's functions.php file and write the following code.
functions.php
// Removing checkout fields
add_filter( 'woocommerce_checkout_fields' , 'wc_remove_checkout_fields' );
function wc_remove_checkout_fields( $fields ) {
unset($fields['billing']['billing_first_name']);
unset($fields['billing']['billing_last_name']);
unset($fields['billing']['billing_company']);
unset($fields['billing']['billing_address_1']);
unset($fields['billing']['billing_address_2']);
unset($fields['billing']['billing_city']);
unset($fields['billing']['billing_postcode']);
unset($fields['billing']['billing_country']);
unset($fields['billing']['billing_state']);
unset($fields['billing']['billing_phone']);
unset($fields['order']['order_comments']);
unset($fields['billing']['billing_address_2']);
unset($fields['billing']['billing_postcode']);
unset($fields['billing']['billing_company']);
unset($fields['billing']['billing_email']);
unset($fields['billing']['billing_city']);
return $fields;
}
// Removing billing details heading and additional information text
add_filter( 'gettext', 'wc_billing_field_heading', 20, 3 );
function wc_billing_field_heading( $translated_text, $text, $domain ) {
switch ( $translated_text ) {
case 'Billing details' :
$translated_text = __( '', 'woocommerce' );
break;
case 'Additional information' :
$translated_text = __( '', 'woocommerce' );
break;
}
return $translated_text;
}
The above code will remove all billing fields and billing field heading. Change the code according to your choice.
https://bayanlarsitesi.com/
ReplyDeleteManisa
Denizli
Malatya
Çankırı
FLUJGE
Antalya
ReplyDeleteElazığ
Mersin
Eskişehir
Amasya
FPB
Antalya
ReplyDeleteAntep
Burdur
Sakarya
istanbul
LCEE
Eskişehir
ReplyDeleteDenizli
Malatya
Diyarbakır
Kocaeli
LFFG4
Diyarbakır
ReplyDeleteKırklareli
Kastamonu
Siirt
Diyarbakır
JW78D
whatsapp görüntülü show
ReplyDeleteücretli.show
WM3U3X
Antep Lojistik
ReplyDeleteYalova Lojistik
Erzincan Lojistik
Tekirdağ Lojistik
Elazığ Lojistik
Yİ3MN
aydın evden eve nakliyat
ReplyDeletebursa evden eve nakliyat
trabzon evden eve nakliyat
bilecik evden eve nakliyat
antep evden eve nakliyat
B51O
211DD
ReplyDeleteİstanbul Şehirler Arası Nakliyat
Antep Şehir İçi Nakliyat
Ankara Parke Ustası
Karaman Şehir İçi Nakliyat
Siirt Şehirler Arası Nakliyat
Çankırı Şehir İçi Nakliyat
Burdur Şehir İçi Nakliyat
Manisa Şehirler Arası Nakliyat
Samsun Parça Eşya Taşıma
83245
ReplyDeleteÜnye Kurtarıcı
Bingöl Evden Eve Nakliyat
Bitlis Parça Eşya Taşıma
Karaman Lojistik
Çerkezköy Çamaşır Makinesi Tamircisi
Amasya Lojistik
Ardahan Şehir İçi Nakliyat
Konya Parça Eşya Taşıma
Çerkezköy Bulaşık Makinesi Tamircisi
F68DE
ReplyDeleteTrabzon Şehirler Arası Nakliyat
Etlik Boya Ustası
Adana Lojistik
Bolu Evden Eve Nakliyat
Düzce Evden Eve Nakliyat
Trabzon Parça Eşya Taşıma
Antalya Şehirler Arası Nakliyat
Binance Güvenilir mi
Elazığ Şehir İçi Nakliyat
80D4B
ReplyDeleteardahan canlı sohbet sitesi
kayseri random görüntülü sohbet
niğde sesli sohbet mobil
kocaeli bedava sohbet odaları
hatay telefonda kızlarla sohbet
yozgat sohbet chat
van canlı görüntülü sohbet
tokat nanytoo sohbet
eskişehir mobil sohbet bedava
A5F4B
ReplyDeleteAydın Bedava Görüntülü Sohbet Sitesi
yalova görüntülü sohbet odaları
Bolu Ücretsiz Sohbet Uygulaması
Rastgele Sohbet
kırklareli görüntülü sohbet
urfa ücretsiz sohbet
yozgat parasız sohbet siteleri
en iyi rastgele görüntülü sohbet
hakkari rastgele görüntülü sohbet ücretsiz
10287
ReplyDeleterastgele görüntülü sohbet uygulaması
sivas telefonda kızlarla sohbet
urfa telefonda kadınlarla sohbet
Izmir Görüntülü Sohbet Sitesi
bursa kızlarla rastgele sohbet
Balıkesir Mobil Sohbet Odaları
kırşehir parasız görüntülü sohbet
eskişehir sesli sohbet sitesi
bitlis canlı sohbet sitesi
19C04
ReplyDeleteLovely Coin Hangi Borsada
Kripto Para Kazma
Big Wolf Coin Hangi Borsada
Chat Gpt Coin Hangi Borsada
Binance Ne Zaman Kuruldu
Spotify Dinlenme Hilesi
Tumblr Beğeni Hilesi
Arbitrum Coin Hangi Borsada
Wabi Coin Hangi Borsada
87444
ReplyDeleteInstagram Takipçi Hilesi
Soundcloud Beğeni Hilesi
Bitcoin Yatırımı Nasıl Yapılır
Mexc Borsası Kimin
Binance Para Kazanma
Baby Doge Coin Hangi Borsada
Binance Borsası Güvenilir mi
Casper Coin Hangi Borsada
Spotify Takipçi Hilesi
30C0E
ReplyDeletewallet onekey
ledger
dcent wallet web
ledger live web
web trust wallet
desktop ledger live
web ledger live wallet
wallet eigenlayer
web trezor
مكافحة الحشرات بالاحساء Psm2DLoR8F
ReplyDelete