Linux 软件免费装
Banner图

WC Provincia Canton Distrito

开发者 keylorcr
更新时间 2024年1月11日 14:46
捐献地址: 去捐款
PHP版本: 4.7 及以上
WordPress版本: 6.1
版权: GPLv2
版权网址: 版权信息

标签

woocommerce e-commerce eCommerce costa rica distrito costa rica states provincias canton central america

下载

1.3.2 1.4.0 1.4.1 1.4.2

详情介绍:

Manage your custom states, cities, and postcodes by countries from a .json file that can be moved from the plugin to your custom location. Available into My account, Shipping calculator form, and the Checkout. Features And Options:

安装:

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.

屏幕截图:

  • Checkout
  • Provincias
  • Distritos búsqueda
  • Editar dirección
  • Detalle dirección
  • Opciones en Administrador de órdenes
  • Formato .json para país, estado, ciudad y código postal
  • Plugin settings

升级注意事项:

1.4.1
  • New plugin settings and check for WP and WC compatibility.
1.4.0
  • Several fixes and code revision. Check for compatibility with latest WP and WC versions.
1.3.2
  • Improvement: Compatibility revision for WP and WC
1.3.1
  • Improvement: JS code improvements and fixes
1.2.3
  • Fix: JS functions and performance
  • New: Compatibility with multi countries from .json and .js
  • Others
1.1.20
  • WC Compatibility
1.1.19
  • Fix: wpcd_file_exists now uses wp_remote_fopen to get data from json file
1.1.18
  • New filter wpcd_prov_cant_dist_json to load json data file
1.1.17
  • Trigger to update_checkout after city change
1.1.16
  • Update in function wpcd_get_provincia_canton_distrito to eliminate file_get_contents function
1.1.15
  • Update domain name in class wpcd-class.php
1.1.14
  • Latest stable version

常见问题:

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.

更新日志:

1.4.2 1.4.1 1.4.0 1.3.2 1.3.1 1.3.0 1.2.6 1.2.5 1.2.4 1.2.3 1.2.2 1.2.1 1.2 1.1.20 1.1.19 1.1.18 1.1.17 1.1.16 1.1.15 1.1.14