vendor registration address

This topic contains 5 replies, has 2 voices, and was last updated by WCfM Forum WCfM Forum 1 week, 2 days ago.

  • Author
    Posts
  • #80469
    Avatar
    sdel_nevo
    Participant

    Hi Guys

    is it possible to re-arrange the address on the vendor registration page to

    address 1
    address 2
    City/town
    county
    postcode
    country

    as per the screenshot

    Steve

    Attachments:
    You must be logged in to view attached files.
  • #80586
    WCfM Forum
    WCfM Forum
    Keymaster

    Hi,

    Sure, please use this code snippet –

    function wcfm_marketplace_address_fields_rearrange( $address_fields ) {
    	$country_field = '';
    	if( isset( $address_fields['country'] ) ) { 
    	  $country_field = $address_fields['country']; 
    	  unset( $address_fields['country'] );
    	  $address_fields['country'] = $country_field;
    	}
    	return $address_fields;
    }
    add_filter( 'wcfm_marketplace_settings_fields_address', 'wcfm_marketplace_address_fields_rearrange' );
    add_filter( 'wcfm_membership_registration_fields_address', 'wcfm_marketplace_address_fields_rearrange' );
    add_filter( 'wcfm_wcmarketplace_settings_fields_customer_support', 'wcfm_marketplace_address_fields_rearrange' );

    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/

    Thank You

  • #80591
    Avatar
    sdel_nevo
    Participant

    Hi guys

    That’s fantastic πŸ˜€

    Many thanks for this. It’s amazing that you guys openly provide the code for your users to change the software to fit there needs,

    If I could I would change the 5 star review I gave to 10 stars

    To be honest I think you guys are the most accommodating software company I have ever used

    Steve

  • #80598
    WCfM Forum
    WCfM Forum
    Keymaster

    You are always welcome πŸ™‚

    Between, do you have get a chance to look at our new home page – https://wclovers.com/

    If you have any comment on this, then please share feed with me.

    Thank you and have a great day πŸ™‚

  • #80600
    Avatar
    sdel_nevo
    Participant

    Hi

    Yeah sure have πŸ˜€ I dropped you an email love the new look

    Steve

  • #80804
    WCfM Forum
    WCfM Forum
    Keymaster

    Thank you very much πŸ™‚

    Hope you are going to have a great meeting. All the best wishes for you πŸ˜€

You must be logged in to reply to this topic.