Türkçe
Türkiye İl İlçe Mahalle Eklentisi, WooCommerce ödeme sayfasındaki varsayılan adres alanlarını Türkiye adres sistemiyle değiştirir. Eklentiyle birlikte 81 il, 973 il-ilçe ilişkisi ve 31.863 mahalle kaydı gelir; CSV yüklemeniz gerekmez.
Özellikler
- Alan sırası: Ülke, İl, İlçe, Mahalle, Açık adres, (Posta kodu), Telefon.
- İlçe ve mahalle listeleri AJAX ile yüklenir; sayfa yavaşlamaz.
- Hem klasik ödeme sayfasını hem de WooCommerce blok tabanlı (Checkout Block) ödeme sayfasını destekler.
- Mahalle,
address_1 alanına yazılmaz; sipariş meta alanlarında ayrı saklanır. address_2 değiştirilmez.
- Otomatik posta kodu: mahalle seçilince posta kodu otomatik doldurulur (mahallelerin yaklaşık %96'sında posta kodu vardır, müşteri değiştirebilir).
- Yönetim panelinde "Posta Kodu Ekle / Düzenle" bölümü: posta kodu olmayan mahallelere kod girin veya mevcut kodu değiştirin.
- Yönetim panelinden yeni il, ilçe ve mahalle ekleyebilirsiniz.
- Fatura bilgileri (isteğe bağlı, Ayarlar'dan açılır): Bireysel için T.C. Kimlik No; Kurumsal için firma ünvanı, vergi dairesi ve Vergi Kimlik No. Numaralar sağlama basamağına göre hem tarayıcıda hem sunucuda doğrulanır.
- Vergi dairesi, seçilen il ve ilçeye göre GİB'in resmi listesinden (860 daire, 18.06.2026) otomatik seçilir; listeden değiştirilebilir, listede olmayan bir ad da yazılabilir.
- Blok ödeme sayfasında alanlar WooCommerce'in kendi alanlarıyla aynı yapıdadır; tema ile uyumlu görünür.
- T.C. Kimlik No yalnızca siparişe yazılır, müşteri profiline kaydedilmez, e-postalarda gösterilmez; yalnızca yöneticiler görür. Doğrulama sağlama basamağına dayanır, numaranın kişiye ait olduğunu kanıtlamaz.
- Ayarlar: il / ilçe / mahalle zorunluluğu, il ve ilçeyi yan yana gösterme, posta kodunu gösterme / gizleme, ikinci adres satırını gösterme / gizleme, kargo eklentileri için "Mahalle Mahallesi, açık adres" biçimi.
- Sipariş ekranında, e-postalarda ve "Hesabım > Adresler" sayfasında mahalle bilgisi görünür.
- Giriş yapmış müşterinin kayıtlı il / ilçe / mahalle bilgisi ödeme sayfasında otomatik seçilir.
- Yüksek Performanslı Sipariş Depolama (HPOS) ve PHP 8.4 uyumlu.
- Güvenlik: yetki ve nonce kontrolleri, hazırlanmış SQL sorguları, kaçışlanmış çıktılar.
- Performans: il listesi önbelleğe alınır, ilçe / mahalle yanıtları tarayıcıda saklanır, veri kurulumu toplu yazılır.
English
Türkiye İl İlçe Mahalle Eklentisi (Turkey Province District Neighborhood) replaces the default WooCommerce checkout address fields with the Turkish address system. 81 provinces, 973 province-district relations and 31,863 neighborhood records are bundled, so no CSV upload is needed.
Features
- Field order: Country, Province, District, Neighborhood, Street address, (Postcode), Phone.
- District and neighborhood lists are loaded with AJAX, keeping pages fast.
- Works with both the classic checkout and the WooCommerce Checkout Block.
- The neighborhood is not written into
address_1; it is stored separately in order meta. address_2 is never modified.
- Automatic postcode: selecting a neighborhood fills in the postcode (about 96% of neighborhoods have one; customers can edit it).
- Admin section "Posta Kodu Ekle / Düzenle": add or change the postcode of any neighborhood, optionally listing only those without one.
- Add provinces, districts and neighborhoods from the admin screen.
- Invoice details (optional, enabled in Settings): T.C. Kimlik No for individuals; company name, tax office and Vergi Kimlik No for companies. Numbers are checksum-validated in the browser and on the server.
- The tax office is selected automatically from the chosen province and district using the official GİB list (860 offices, 2026-06-18); it can be changed, and a name not in the list may be typed.
- In the Checkout Block the fields use WooCommerce's own field markup and look identical to core fields.
- The T.C. Kimlik No is stored on the order only (not in the customer profile, not in emails, visible to admins). Validation is checksum-based and does not prove ownership.
- Settings: require province / district / neighborhood, show province and district side by side, show or hide the postcode, show or hide the second address line, optional "Neighborhood Mahallesi, street address" format for cargo plugins.
- The neighborhood is shown on the order screen, in emails and under My Account > Addresses.
- The saved province / district / neighborhood of a returning customer is pre-selected at checkout.
- Compatible with High-Performance Order Storage (HPOS) and PHP 8.4.
- Security: capability and nonce checks, prepared SQL queries, escaped output.
- Performance: cached province list, browser-cached district / neighborhood responses, batched data import.
Bundled data: 81 provinces, 973 province-district relations and 31,863 unique neighborhood records (data/turkiye-il-ilce-mahalle.csv).
- Upload the ZIP file at Plugins > Add New > Upload Plugin.
- Activate the plugin. WooCommerce must be active.
- Configure the plugin at WooCommerce > Türkiye İl İlçe Mahalle Eklentisi.
If you are upgrading from the older "WooCommerce Türkiye Adres Sistemi" (version 1.2.3 or earlier), deactivate and delete the old plugin first. Your settings and address data are kept.