Vendso Türkiye Checkout Fields for WooCommerce

Description

Vendso Türkiye Checkout Fields adds Turkey-specific checkout and address fields to your store. It works on both the classic (shortcode) checkout and the block checkout, using the WooCommerce Store API additional fields where possible.

Features

  • Province / district dropdowns: When a customer picks a province (state), the district (city) field becomes a searchable dropdown populated with that province’s districts. Includes all 81 provinces and 970+ districts.
  • Field order: Shows the province (Şehir) field before the district (İlçe) field on the address form.
  • National ID field (T.C. Kimlik No): Validated with the official checksum algorithm. Required when the cart total exceeds a threshold you set (default 5,000 TL) and optional below it.
  • Corporate orders: A “Corporate order” checkbox that reveals Company Name, Tax Office, and Tax Number fields (10/11 digit validation). The national ID field is hidden while corporate is selected.
  • One definition, both checkouts: Built on the WooCommerce Store API additional fields so it works on both block and classic checkout.
  • Postcode control: Keep the postcode field as-is, make it visible but optional, or hide it entirely.
  • Every feature can be toggled individually from WooCommerce > Settings > TR Fields.

On its own settings tab the plugin shows a single, non-dismissible informational box linking to the author’s companion cargo plugin. It loads no remote scripts, sets no cookies, and performs no tracking; it is hidden automatically when that companion plugin is installed.

Türkçe Açıklama

Vendso Türkiye Checkout Fields, mağazaınıza Türkiye’ye özel ödeme (checkout) ve adres alanları ekler. Hem klasik (kısa kod) ödeme sayfasında hem de blok ödeme sayfasında çalışır; mümkün olduğunda WooCommerce Store API ek alanlarını kullanır.

Özellikler

  • İl / İlçe açılır menüleri: Müşteri bir il (şehir) seçtiğinde, ilçe alanı o ile ait ilçelerle dolu, aranabilir bir açılır menüye dönüşür. 81 il ve 970+ ilçe dahildir.
  • Alan sırası: Adres formunda il (Şehir) alanını ilçe (İlçe) alanından önce gösterir.
  • T.C. Kimlik No alanı: Resmi doğrulama algoritmasıyla (checksum) kontrol edilir. Sepet tutarı belirlediğiniz eşiği (varsayılan 5.000 TL) aştığında zorunlu, altında isteğe bağlı olur.
  • Kurumsal siparişler: “Kurumsal sipariş” kutusu işaretlenince Firma Adı, Vergi Dairesi ve Vergi No alanları (10/11 haneli doğrulama) görünür. Kurumsal seçiliyken T.C. Kimlik No alanı gizlenir.
  • Tek tanım, iki ödeme sayfası: WooCommerce Store API ek alanları üzerine kuruludur; hem blok hem klasik ödeme sayfasında çalışır.
  • Posta kodu kontrolü: Posta kodu alanını olduğu gibi bırakın, görünür ama isteğe bağlı yapın ya da tamamen gizleyin.
  • Tüm özellikler WooCommerce > Ayarlar > TR Fields sekmesinden ayrı ayrı açılıp kapatılabilir.

Eklenti, kendi ayar sekmesinde, yazarın tamamlayıcı kargo eklentisine bağlantı veren tek, kapatılamaz bir bilgi kutusu gösterir. Uzak betik yüklemez, çerez kullanmaz ve takip yapmaz; ilgili kargo eklentisi kuruluysa otomatik olarak gizlenir.

Bu eklenti WooCommerce veya Automattic ile ilişkili değildir ve onlar tarafından onaylanmamıştır. “WooCommerce”, Automattic Inc.’in ticari markasıdır.

This plugin is not affiliated with or endorsed by WooCommerce or Automattic. “WooCommerce” is a trademark of Automattic Inc.

Installation

  1. Upload the plugin to the /wp-content/plugins/ directory, or install it from the WordPress plugins screen.
  2. Activate the plugin.
  3. Go to WooCommerce > Settings > TR Fields and enable the features you want.

FAQ

Does it support the block checkout?

Yes. The district dropdown and all fields work on the block checkout as well as the classic checkout.

Is the national ID required on every order?

No. It is only required when the cart total exceeds the threshold you configure (default 5,000 TL); otherwise it is optional.

Where is the customer data stored?

Field values are saved as order meta and on the customer’s billing address, so they appear in the order admin and prefill on the My Account address form.

Blok ödeme sayfasını destekliyor mu? (Türkçe)

Evet. İlçe açılır menüsü ve tüm alanlar hem blok hem klasik ödeme sayfasında çalışır.

T.C. Kimlik No her siparişte zorunlu mu? (Türkçe)

Hayır. Yalnızca sepet tutarı belirlediğiniz eşiği (varsayılan 5.000 TL) aştığında zorunludur; altında isteğe bağlıdır.

Müşteri verileri nerede saklanır? (Türkçe)

Alan değerleri sipariş meta verisi olarak ve müşterinin fatura adresinde saklanır; böylece sipariş yönetiminde görünür ve Hesabım adres formunda otomatik dolar.

Reviews

There are no reviews for this plugin.

Contributors & Developers

“Vendso Türkiye Checkout Fields for WooCommerce” is open source software. The following people have contributed to this plugin.

Contributors

Changelog

1.6.1

  • Added a Turkish-language section to the plugin description and FAQ (no functional changes).

1.6.0

  • Renamed the plugin to “Vendso Türkiye Checkout Fields for WooCommerce” (slug: vendso-turkiye-checkout-fields) for a more distinctive, brandable name. Plugin and author URLs now point to vendso.com. No functional changes; all features, settings, and stored data remain the same.

1.5.9

  • The companion-plugin promo is no longer a dismissible global admin notice. It is now a small, permanent informational box rendered inside the plugin’s own settings tab (WooCommerce > Settings > TR Fields). It does not appear anywhere else in wp-admin, has no dismiss/tracking, and is automatically hidden when the companion cargo plugin is already installed.

1.5.8

  • Fixed the Block checkout district (ilçe) field label overlapping the “İlçe seçiniz…” placeholder when no district was selected. The district sits inside WooCommerce’s floating-label text-input wrapper, whose label was centered (top:25px) and collided with the select placeholder. The wrapper now gets a ‘trcf-has-select’ class and the label is pinned to the top (top:6px, 13px) to match WooCommerce’s native province (state) select, so the two fields look identical and no longer overlap. Verified on desktop and mobile.

1.5.7

  • The Block checkout district (ilçe) select now has a unique id and name plus an address-level2 autocomplete hint. This removes the Chrome “A form field element has neither an id nor a name attribute” issue (the red-underlined element warning) and improves autofill. The name is intentionally distinct from the real city field so the actual value still flows to the WooCommerce city field without conflict.

1.5.6

  • The district (ilçe) dropdown placeholder now matches WooCommerce’s native province (state) select: a disabled, empty-value first option with data-alternate-values and a readable label (“İlçe seçiniz…”) instead of an empty/ill-fitting placeholder. Applies to both Block and classic checkout, so the district select looks identical in tone to the city/state select.

1.5.5

  • Fixed the postcode field not being hidden on the Block checkout. The plugin previously relied on CSS/JS to hide the postcode row, which the Block checkout (Store API) ignores. It now applies the postcode mode through the country locale (woocommerce_get_country_locale): “hidden” sets the postcode field’s hidden+required=false so the Block checkout actually removes it, and “optional” sets required=false so it stays visible but optional. This works for both Block and classic checkout and does not break Store API validation.

1.5.4

  • Fixed a WooCommerce 8.6+ “doing it wrong” notice when registering the T.C. Kimlik No and Vergi No block checkout fields: removed the disallowed inputmode/placeholder attributes and renamed maxlength to the allowed maxLength (camelCase), adding a numeric pattern instead. With WP_DEBUG display enabled this notice could leak into the Store API JSON response and silently break the Block checkout “Place order” button.

1.5.3

  • Block checkout: district dropdown now matches the province select box, alignment and label exactly; removed the overlapping placeholder.

1.5.2

  • Block checkout: company name field now spans full width; tax office and tax number stay side by side.

1.5.0

  • Postcode field now has three modes: default, visible but optional, or hidden.
  • National ID and corporate fields are now moved to the top of the address form (after Country).

1.4.0

  • Added an option to hide the postcode field on the checkout and address forms.

1.3.0

  • Renamed plugin and prefixes for WordPress.org compliance.
  • District field is now a searchable dropdown (matches the WooCommerce province select).
  • Fixed corporate toggle and duplicate fields on the My Account address form.

1.2.0

  • National ID field (official checksum validation, threshold-based requirement).
  • Corporate order fields (company name, tax office, tax number) with conditional display.
  • WooCommerce > Settings > TR Fields tab.

1.1.0

  • Province/district field order fix (province before district).

1.0.0

  • Initial release: dynamic district dropdown by province (block + classic checkout).