Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › WCFM – Feature Request › Shipping by City.
- This topic has 6 replies, 2 voices, and was last updated 5 years, 11 months ago by Sayan Naskar.
- AuthorPosts
- November 7, 2018 at 12:48 pm #36025d-n-13Participant
Hi wcfm,
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 ?
Thank You
- November 8, 2018 at 7:02 am #36096Sayan NaskarMember
Hello,
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.
Thank You.
- November 19, 2018 at 4:16 pm #37077d-n-13Participant
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 #37082d-n-13Participant
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 #37175Sayan NaskarMember
Hello,
Have you added the code?
add_filter('wcfmmp_city_select_dropdown_enabled', '__return_true' );
Moreover, the city restriction works only for shipping by zone. Please find attached screenshot.
Thank You.
Attachments:
You must be logged in to view attached files. - November 20, 2018 at 12:36 pm #37239d-n-13Participant
Hi,
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.
Thank You
- November 28, 2018 at 9:09 am #38492Sayan NaskarMember
Hello,
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.Thank You.
- AuthorPosts
- The topic ‘Shipping by City.’ is closed to new replies.