• 28-08-2019, 18:32:36
    #1
    Fatura adresi istenirken ülke soruluyor.Bunun temanın hangi sayfasında istendiğini buldum ancak bunu sorunsuz olarak nasıl kaldırabilirim ?


    <div class="woocommerce-billing-fields">
    <?php if ( wc_ship_to_billing_address_only() && WC()->cart->needs_shipping() ) : ?>
    
    <h3><?php esc_html_e( 'Fatura &amp; Kargo', 'woocommerce' ); ?></h3>
    
    <?php else : ?>
    
    <h3><?php esc_html_e( 'Fatura detayları', 'woocommerce' ); ?></h3>
    
    <?php endif; ?>
    
    <?php do_action( 'woocommerce_before_checkout_billing_form', $checkout ); ?>
    
    <div class="woocommerce-billing-fields__field-wrapper">
    <?php
    $fields = $checkout->get_checkout_fields( 'billing' );
    
    foreach ( $fields as $key => $field ) {
    if ( isset( $field['country_field'], $fields[ $field['country_field'] ] ) ) {
    $field['country'] = $checkout->get_value( $field['country_field'] );
    }
    woocommerce_form_field( $key, $field, $checkout->get_value( $key ) );
    }
    ?>
    </div>
    
    <?php do_action( 'woocommerce_after_checkout_billing_form', $checkout ); ?>
    </div>
  • 28-08-2019, 18:59:28
    #2
    Kimlik doğrulama veya yönetimden onay bekliyor.
    Checkout Field Editors eklentisi ile rahatlıkla kaldırabilirsin

    eklenti linki https://tr.wordpress.org/plugins/woo...o/#description
  • 28-08-2019, 19:05:44
    #3
    sokaks adlı üyeden alıntı: mesajı görüntüle
    Checkout Field Editors eklentisi ile rahatlıkla kaldırabilirsin

    eklenti linki https://tr.wordpress.org/plugins/woo...o/#description
    Teşekkürler hocam halletim aşağıdaki kod ile
    /* WooCommerce: The Code Below Removes Checkout Fields */ add_filter( 'woocommerce_checkout_fields' , 'custom_override_checkout_fields' ); function custom_override_checkout_fields( $fields ) { unset($fields['billing']['billing_country']); return $fields; }
  • 16-06-2021, 23:34:43
    #4
    Breakupsong adlı üyeden alıntı: mesajı görüntüle
    Teşekkürler hocam halletim aşağıdaki kod ile
    /* WooCommerce: The Code Below Removes Checkout Fields */ add_filter( 'woocommerce_checkout_fields' , 'custom_override_checkout_fields' ); function custom_override_checkout_fields( $fields ) { unset($fields['billing']['billing_country']); return $fields; }
    nereye eklemiştiniz hocam.
  • 17-06-2021, 14:07:39
    #5
    ZyDn adlı üyeden alıntı: mesajı görüntüle
    nereye eklemiştiniz hocam.
    Şu an anımsamıyorum hocam çok zaman geçmiş üzerinden.Muhtemelen functions.php üzerinden.
  • 17-06-2021, 14:08:58
    #6
    Breakupsong adlı üyeden alıntı: mesajı görüntüle
    Şu an anımsamıyorum hocam çok zaman geçmiş üzerinden.Muhtemelen functions.php üzerinden.
    teşekkürler hocam hallettim