Hello WCMP !
Looking for drop down of /state/city. I am getting country state auto populated but cities not going through well. how to add this in vendor registration form please.
Thank you.
Ok thank you for your reply, I will try to find another way.
– In vendor registration form, I only want to display these two countries: United Arab Emirates and France.
I followed this thread https://wc-marketplace.com/support-forum/topic/limit-vendor-country/ and added `add_filter( ‘woocommerce_countries_allowed_countries’, ‘country_limit’,20,1);
function country_limit($country){
return array(‘United Arab Emirates’,’france’);
}` in my function.php
The fact is that it also restrict billing and shipping countries to these two country.
I only need the restriction for vendor registration form not in woocommerce checkout country list:
Ok thank you for your reply, I will try to find another way.
In vendor registration form, I only want to display these two countries: United Arab Emirates and France.
I followed this thread https://wc-marketplace.com/support-forum/topic/limit-vendor-country/ and added `add_filter( ‘woocommerce_countries_allowed_countries’, ‘country_limit’,20,1);
function country_limit($country){
return array(‘United Arab Emirates’,’france’);
}` in my function.php
The fact is that it also restrict billing and shipping countries to these two country.
I only need the restriction for vendor registration not in woocommerce checkout
Hi,
For this you have to modify and add some custom code. Kindly override templates/vendor_registration_form.php template by copying it to yourtheme/dc-product-vendor/vendor_registration_form.php
And add your custom code.
Regards,