Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › WCFM – Marketplace (WooCommerce Multivendor Marketplace) › vendor settings
- This topic has 10 replies, 2 voices, and was last updated 4 years, 7 months ago by Sushobhan.
- AuthorPosts
- May 3, 2020 at 9:49 pm #126184
- May 4, 2020 at 8:40 pm #126580SushobhanKeymaster
Hi,
Thanks for getting in touch with us!
There are filters to change the field order, though sometimes the fields are in groups and then can only be sorted within that group.
Please provide me the order in which you want these fields and I’ll help you accordingly.
Thanks! - May 4, 2020 at 10:04 pm #126607masaParticipant
hi
thank you for your support.
please check for 2pages.this is for japanese
・for re/vendor-register/
user_email
password
password
store_name
phone
last_name
fisrst_name
country(delete)
zip
state
city
addr_1
addr_2
custom field・for t/?store-setup=yes&step=support
vendor_customer_email
vendor_customer_phone
country(delete)
zip
state
city
addr_1
addr_2 - May 5, 2020 at 2:50 pm #126922SushobhanKeymaster
Hi,
To change the fields order in registration page, please override the templatewc-multivendor-membership\templates\vendor_registration.php
inside your child themes folder under the path[child theme folder]/wcfm/membership/vendor_registration.php
.
And for the support field orders use the following snippet-add_filter( 'wcfm_wcmarketplace_settings_fields_customer_support', function($fields) { $new_fields = array(); if ( isset( $fields["vendor_customer_email"] ) ) $new_fields["vendor_customer_email"] = $fields["vendor_customer_email"]; if ( isset( $fields["vendor_customer_phone"] ) ) $new_fields["vendor_customer_phone"] = $fields["vendor_customer_phone"]; if ( isset( $fields["vendor_csd_return_country"] ) ) { $new_fields["vendor_csd_return_country"] = $fields["vendor_csd_return_country"]; $new_fields["vendor_csd_return_country"]["type"] = 'hidden'; } if ( isset( $fields["vendor_csd_return_zip"] ) ) $new_fields["vendor_csd_return_zip"] = $fields["vendor_csd_return_zip"]; if ( isset( $fields["vendor_csd_return_state"] ) ) $new_fields["vendor_csd_return_state"] = $fields["vendor_csd_return_state"]; if ( isset( $fields["vendor_csd_return_city"] ) ) $new_fields["vendor_csd_return_city"] = $fields["vendor_csd_return_city"]; if ( isset( $fields["vendor_csd_return_address1"] ) ) $new_fields["vendor_csd_return_address1"] = $fields["vendor_csd_return_address1"]; if ( isset( $fields["vendor_csd_return_address2"] ) ) $new_fields["vendor_csd_return_address2"] = $fields["vendor_csd_return_address2"]; return $new_fields; } );
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 this goes.
Thanks! - May 6, 2020 at 1:43 am #127165
- May 6, 2020 at 10:55 pm #127636SushobhanKeymaster
Hi,
If possible, please use a ftp to edit your functions.php. In you file all the"
and'
gets changed to html entities like"
. You need to fix this.
Thank you! - May 6, 2020 at 11:23 pm #127646masaParticipant
thank you so much
i added by socde snippet plugin.
- May 6, 2020 at 11:45 pm #127661
- May 7, 2020 at 12:12 am #127686SushobhanKeymaster
Please send me the ordering of the fields to suggest you the right way. Thanks!
- May 7, 2020 at 12:29 am #127694masaParticipant
sorting is ok now.
but STATE selector not showing any state.how can i show Japanese State selector?
- May 7, 2020 at 12:36 am #127700SushobhanKeymaster
Hi,
Please edit the country portion of the previous code like the following-if ( isset( $fields["vendor_csd_return_country"] ) ) { $new_fields["vendor_csd_return_country"] = $fields["vendor_csd_return_country"]; $new_fields["vendor_csd_return_country"]["value"] = 'JP'; $new_fields["vendor_csd_return_country"]["type"] = 'hidden'; }
It should do the trick. Sorry I can’t test this on my side now. Let me know if that helps.
Thank You!
- AuthorPosts
- You must be logged in to reply to this topic.