Linux 软件免费装

WC City Select

开发者 mantish
rwky
jonaskirch
更新时间 2024年12月15日 18:21
捐献地址: 去捐款
PHP版本: 4.0 及以上
WordPress版本: 6.7
版权: GPLv2 or later
版权网址: 版权信息

标签

woocommerce city select cities select city dropdown cities dropdown

下载

1.0.3 1.0.4 1.0.5 1.0 1.0.1 1.0.2 1.0.6 1.0.7 1.0.8 1.0.9

详情介绍:

WooCommerce uses a text input for the customers to enter the city or town. With this plugin you can provide a list of cities to be shown as a select dropdown. This will be shown in checkout pages, edit addresses pages and shipping calculator if it's configured that way. WooCommerce Cart and Checkout Blocks This plugin is not yet compatible with Blocks. It works using the legacy shortcodes: [woocommerce_cart] and [woocommerce_checkout]. To make this plugin work, you can use these shortcodes instead of the blocks for your Cart and Checkout pages. How to add cities A list of cities has to be loaded in the functions.php file (the plugin already includes cities from some countries). Use wc_city_select_cities filter to load your cities. This is done similarly to adding states/provinces. It should be added on your functions.php or a custom plugin. ` add_filter( 'wc_city_select_cities', 'my_cities' ); /** add_filter( 'wc_city_select_cities', 'my_cities' ); function my_cities( $cities ) { $cities['XX'] = array( 'City ', 'Another City' ); return $cities; } GitHub Source code and contributions at github

更新日志:

1.0.9 1.0.8 1.0.7 1.0.6 1.0.5 1.0.4 1.0.3 1.0.2 1.0.1 1.0