This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Temanızın functions.php dosyasına ekleyebilirsiniz, tercihen child temaya. | |
add_filter( 'woocommerce_checkout_fields' , 'custom_override_checkout_fields' ); | |
add_filter( 'woocommerce_billing_fields', 'custom_override_billing_fields'); | |
add_filter( 'woocommerce_shipping_fields', 'custom_override_shipping_fields'); | |
add_filter( "woocommerce_add_cart_item_data", "custom_override_cart_page_fields"); | |
function custom_override_checkout_fields( $fields ) { | |
$fields['billing']['billing_city'] = array( | |
'label' => __('İlçe', 'woocommerce'), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// See https://aka.ms/new-console-template for more information | |
using System.Globalization; | |
using System.Net; | |
using System.Security.Cryptography; | |
using System.Text; | |
namespace ConsoleApp | |
{ | |
internal class Program | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
* Çalışma koşulu şu şekilde; | |
* Ödeme ekranına geldiğinde müşteri varsayılan olarak T.C. alanını görecek ama araştırdığım ve öğrendiğim kadarıyla sadece 5000 TL ve üstü siparişler için T.C. numarası zorunluymuş bu yüzden zorunlu olmayacak. | |
* Zorunlu olmamasına rağmen eğer müşteri buraya yanlış bir T.C. yazarsa doğrulamadan geçecek ve eğer yazmak istemiyorsa boş bırakması için uyarı mesajı gelecek | |
* Eğer firma adına fatura isterse Kurumsal Sipariş Checkbox'ını işaretleyerek T.C. alanı gizlenecek ve vergi dairesi ile vergi numarası alanı gözükecek ve bu alanlar zorunlu olacak | |
* Not: T.C. numarası ve Vergi Numarası doğrulamadan geçiyor. | |
* Eksikler: T.C. Numarasını boş bırakabildikleri için veri tabanına o sipariş için 11111111111 yazdırmayı başaramadım. -> | |
* Ama 147. satırdaki kod sipariş ekranında bu bilgiyi gösteriyor, bunu nasıl yaparız bilen varsa yazsın -> | |
* Aslında 'default' => 11111111111 ile veritabanına bunu yazdırabilirim ama bunu set edince sipariş ekranında bu numaranın gözükmesi hoşuma git |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Responsive WordPress Core Theme Styles | |
* http://jeffsebring.com/responsive-wordpress-images/ | |
--------------------------------------------------- */ | |
.sticky, | |
.bypostauthor, | |
.gallery-caption { | |
display: normal; | |
} |