- November 7, 2018 at 12:48 pm #36025
Thanks for the latest shipping updates, it is becoming better and better.
I’m wondering if it is possible to make shipping is based on cities as well, not just states.
Side note : woocommerce doesn’t support cities for my country, how to add them ?
- November 8, 2018 at 7:02 am #36096
Shipping based on cities support is already added in the WCFM Marketplace.
To add City Support You need to install the plugin WC City Select ( https://wordpress.org/plugins/wc-city-select/ ) Use the method of associating cities with the states of your country to add the cities you want (It is mentioned in the plugin description page). This will add city Support to Woocomerce.
Now to enable city support in WCfMmp you need to add the following line in the child themes function.php or in the code snippet plugin.:
add_filter(‘wcfmmp_city_select_dropdown_enabled’, ‘__return_true’ );
Again as this is a user-specific requirement we have made this filter based, so you need to enable this feature.
- November 19, 2018 at 4:16 pm #37077
Hello Mr. Naskar,
I’ve used WC City Select and it worked,
But the filter did not do anything, when I go to shipping settings I cannot ship by city. https://www.dropbox.com/s/96dfgkmevelv6fv/Shipping.jpg?dl=0
- November 19, 2018 at 4:23 pm #37082
Also, after I find solution for this topic, my goal is to achieve solution for the next topic with your help : https://wclovers.com/forums/topic/search-products-by-countries-and-states-shipped-to/#post-37079
- November 20, 2018 at 6:42 am #37175
- November 20, 2018 at 12:36 pm #37239
yes the code working now,
As much as I love shipping by zone, I hate that when you limit shipping to a state / city, you cannot ship to it anymore (it won’t be part of everywhere else too) right ?
That’s why i’m using shipping by country.
If there is no workaround for that I’ll go back to shipping by country and append city names with state names.
- November 28, 2018 at 9:09 am #38492
For now, city restriction is only possible for shipping by zone. We will inform you if we make further changes in the other shipping types.