WC Provincia Canton Distrito

WC Provincia Canton Distrito

توسط

Manage your custom states, cities, and postcodes by countries from a .json file that it can be moved to your theme using hooks or managed them by the plugin settings.

Available into My account, Shipping calculator form, and the Checkout.

It started working only for Costa Rica but now it is compatible with multi countries.

Check or request a custom PRO add-on here

Features And Options:

  • Multicountry compatible.
  • Postcode loaded from the selected location.
  • Filters and actions are available.
  • Also available for admin orders edition
  • Shared locations for Ecuador, Guatemala, Peru and Nicaragua are available here.

Requieres WooCommerce

  1. Upload the plugin files to the /wp-content/plugins/wc-prov-cant-dist directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the ‘Plugins’ screen in WordPress.
  3. Optional, go to the settings page from plugin listing with Settings link or go to Menu > Settings > WC Provincia-Canton-Distrito
  4. Done.

سوالات متداول

How do I set up the plugin?

No configuration required. All locations are automatically loaded to state, city, and postcode fields. However, it has three optional configurations: The first one removes the plugin priority for fields state, city, and postcode and keeps using the WooCommerce priority. The second one hides the postcode on the Checkout page, shipping calculator form, and billing and shipping form pages. And the last one allows you to debug the js plugin file printing the .js instead of .min.js.

Where is the data origin?

The distribution of Country > State > City-District > Postcode is loaded from a .json file located on /assets/js/prov-cant-dist.json.

Is it possible to override the data origin?

Yes, it can be overridden from your custom theme directory using the filter wcpcd_prov_cant_dist_json.

Is it possible to make it compatible with another country?

Now it is possible, simply override the prov-cant-dist.json file in your custom theme. Then you can add your country (based on WC country code) followed by states, cities-districts and postcodes. Use the filter wcpcd_prov_cant_dist_json and the snippet from this gist

Having problems with the data origin (locations)?

You can check if the file with locations is being loaded to your site, simply go to the section Testing JSON of Locations in the settings page of the plugin. If there are problems loading this file, a message will be shown and with the instructions and the snippet required to load the locations from your custom theme. If the problem persists, send me an email using the Contact me link.

×
نظری برای این آیتم موجود نیست.
0 0 رای ها
امتیازدهی
اشتراک در
اطلاع از
0 نظرات
قدیمی‌ترین
تازه‌ترین بیشترین رأی
نسخه حجم فایل SHA256 تغییرات دانلود
1.5.4 32 کیلوبایت -
دانلود
×
★★★★★
★★★★★
5.0 /5 (5 نظر)

قیمت:

رایگان

نگارش

1.5.4

آخرین انتشار

14 اردیبهشت 1405

آخرین بروزرسانی

4 ماه پیش

نصب های فعال

1,000+

نگارش وردپرس

وردپرس 4.7+

تست شده از نسخه

وردپرس 6.7.5

نگارش PHP

-

نسخه ها

1 نسخه