Delete field from vendor registration form

We're shifting our Forum based support to a more dedicated support system!

We'll be closing our Forum support from 10th June, 2020 and move to Email Support assistance.

  • If you are a WCFM premium add-ons user, contact us- here
  • Want to know more before buying our add-ons? Send Pre sale queries- here
  • If you are a WCFM free user, please open a support ticket at WordPress.org
  • For WCFM App related queries, reach us- here
From now the forum will be read-only!

Viewing 4 reply threads
  • Author
    Posts
    • #33096
      ing.acrd
      Participant

      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.

    • #33123
      WCFM Forum
      Member

      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

      • #33197
        ing.acrd
        Participant

        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!

    • #33203
      WCFM Forum
      Member

      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

    • #33210
      ing.acrd
      Participant

      How to use Loco Translate?

      And how to delete “Address 2” and “Post code /Zip”

    • #33252
      WCFM Forum
      Member

      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

Viewing 4 reply threads
  • The topic ‘Delete field from vendor registration form’ is closed to new replies.