WCMp Core
Tagged: city, dropdown, Vendor registration
-
AuthorPosts
-
-
February 26, 2021 at 4:59 AM #116549boukimagaParticipant
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. -
February 26, 2021 at 6:45 PM #116583MVX Support NinjaKeymaster
Hello,
Thank you for reaching out to us.
For state we have already drop down as you can see here https://www.loom.com/share/491e1ccfd4ae4d32b7563ecb09730540
Now for city, we do not have any drop down at present, however with custom coding you can add it at your end.
Kindly let us know if you need any help with the hook and filter then our team will guide you accordingly.
-
March 2, 2021 at 10:59 AM #116776boukimagaParticipant
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://multivendorx.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: -
March 2, 2021 at 10:59 AM #116777boukimagaParticipant
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://multivendorx.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 -
March 2, 2021 at 4:57 PM #116818MVX Support NinjaKeymaster
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,
-
-
AuthorPosts
The topic ‘Vendor registration with dynamic city dropdown field’ is closed to new replies.