Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › WCFM › Separate Woo 'Selling Countries' and 'Vendor Registration Country'
Tagged: countries, country, Vendor registration
- This topic has 3 replies, 2 voices, and was last updated 4 years, 8 months ago by Sushobhan.
- AuthorPosts
- April 22, 2020 at 5:43 pm #121800shenom.netParticipant
Hi.
We like to use WCFM in a slightly different way. We have artists (vendors) all over the world – but selling products / shipment just starts in one country. So – it seems that the list of countries that a vendor can choose by registration is the same as selling / shipment Woo country list.
Is there a way to get these separated?
Cheers / Sascha
- April 22, 2020 at 8:17 pm #121891SushobhanKeymaster
Hi,
You could set Selling location(s) to “all countries” and restrict Shipping location(s) to some specific countries. Then it will allow vendors to choose from all the countries.
Thanks! - April 23, 2020 at 2:45 am #122003shenom.netParticipant
Hi.
Thx for the fast reply!
That looks like a quick fix – but finally it´s not a solution. This way we must force our customers to fill out both – the invoice and shipping fields. Also it´s confusiong – as for the first part (the invoice fields) it looks to the customer as he could order from any country of the world and then get´s disapointed in the shipping section.
Is there any known way to handle the data of the user ‘vendor’ different from ‘ordinary’ customers? Set different Woo country setting for each of them? - April 23, 2020 at 11:05 am #122066SushobhanKeymaster
Hello,
When we populate that vendor country, we fetch the data from existing WooCommerce settings. It can be of of the following-
1. Allowed Selling location(s) (default)
2. Allowed Shipping locationsSo current you have 2 options, you could set Selling location(s) to “all countries” and restrict Shipping location(s) to some specific countries. Then it will allow vendors to choose from all the countries.
Or set Selling location(s) to some specific countries and allow Shipping location(s) to “all countries”.
Can you use the 2nd option for your purpose? As Admin you can choose your shipping regions and thus vendors will not be able to ship outside of the allowed regions! Then, to change the Country field setting you will need to use the following snippet-
add_filter( 'wcfm_marketplace_settings_fields_address', function($address_field) { if(isset($address_field['country'])) { $address_field['country']['wcfmmp_shipping_country'] = true; } return $address_field; });
Add this code to your child theme’s functions.php
In case you do not have child theme then add code using this plugin – https://wordpress.org/plugins/code-snippets/
Let me know how it goes.
Thanks!
- AuthorPosts
- You must be logged in to reply to this topic.