Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › WCFM – Marketplace (WooCommerce Multivendor Marketplace) › Delete field from vendor registration form
Tagged: change fields on registration
- This topic has 5 replies, 2 voices, and was last updated 6 years, 1 month ago by WCFM Forum.
- AuthorPosts
- October 2, 2018 at 8:40 pm #33096ing.acrdParticipant
Hello, i want to make simple the registration. So i want to eliminate the “Address 2” and “Post code /Zip” fields and change the name of fields City, State.
How can i do it in the membership registration and in the vendor registration? maybe by php? or CSS? Please help me.
I have installed the WCFM Marketplace, WCFM Ultimate, WCFM Groups and staff.
- October 3, 2018 at 4:21 am #33123WCFM ForumMember
HI,
Thanks for get in touch wit us.
I understand your requirement and all these are possible using PHP.
“name of fields City, State.” – Please know me which name you want to set, I will give you code for this.
Thank you
- October 3, 2018 at 2:52 pm #33197ing.acrdParticipant
Hello,
Thanks.
So, please give me the php code to do the next changes in vendor registration and in membership registration:
*delete “Address 2” and “Post code /Zip”
*Change: “Nombre de tu local” (name of your store) to “Nombre de tu tienda”
*Change:”Ciudad/Pueblo” (City/Town)to “Ciudad”
*Change:”Estado/Provincia” (State) to “Departamento”Thanks!
- October 3, 2018 at 4:23 pm #33203WCFM ForumMember
Hi,
*delete “Address 2” and “Post code /Zip” – It’s fine.
Others are translation, right?
Why you are not changing this using Loco Translate?
Thank You
- October 3, 2018 at 4:53 pm #33210ing.acrdParticipant
How to use Loco Translate?
And how to delete “Address 2” and “Post code /Zip”
- October 4, 2018 at 8:43 am #33252WCFM ForumMember
Hi,
Just add this code to your site for the purpose –
function wcfm_marketplace_settings_fields_0410_address( $address_fields ) { if( isset( $address_fields['addr_2'] ) ) { $address_fields['addr_2']['class'] = 'wcfm_custom_hide'; $address_fields['addr_2']['label_class'] = 'wcfm_custom_hide'; } if( isset( $address_fields['zip'] ) ) { $address_fields['zip']['class'] = 'wcfm_custom_hide'; $address_fields['zip']['label_class'] = 'wcfm_custom_hide'; } if( isset( $address_fields['city'] ) ) { $address_fields['city']['label'] = 'Ciudad'; } if( isset( $address_fields['state'] ) ) { $address_fields['state']['label'] = 'Departamento'; } return $address_fields; } add_filter( 'wcfm_marketplace_settings_fields_address', 'wcfm_marketplace_settings_fields_0410_address' ); add_filter( 'wcfm_membership_registration_fields_address', 'wcfm_marketplace_settings_fields_0410_address' );
Thank You
- AuthorPosts
- The topic ‘Delete field from vendor registration form’ is closed to new replies.