• hi, I asked to enter this code to have the “skype” field as an additional contact for the seller:

    add_filter('wcfm_marketplace_settings_fields_general', 'wcfm_marketplace_settings_fields_general_custom2004', 50, 2 );
    function wcfm_marketplace_settings_fields_general_custom2004($general_fields,$vendor_id) {
    	$vendor_data = get_user_meta( $vendor_id, 'wcfmmp_profile_settings', true );
    	$skype_name            = isset( $vendor_data['skype_name'] ) ? esc_attr( $vendor_data['skype_name'] ) : '';
    	if(isset($general_fields['store_name'])) {
    		$general_fields['skype_name']= array('label' => __('Skype Username', 'wc-frontend-manager') , 'type' => 'text', 'class' => 'wcfm-text wcfm_ele', 'label_class' => 'wcfm_title wcfm_ele', 'value' => $skype_name );
    	}
    	return $general_fields;
    }
    
    add_action( 'wcfm_wcfmmp_settings_update','fn_wcfm_vendor_settings_storetype_update2004', 50, 2);
    add_action( 'wcfm_vendor_settings_update','fn_wcfm_vendor_settings_storetype_update2004', 50, 2);
    function fn_wcfm_vendor_settings_storetype_update2004($user_id, $wcfm_settings_form ){	
    	$wcfm_settings_form_data_new = array();
    	parse_str($_POST['wcfm_settings_form'], $wcfm_settings_form_data_new);	
    	$wcfm_settings_form_data_storetype = array();
    	if(isset($wcfm_settings_form_data_new['skype_name']) && !empty($wcfm_settings_form_data_new['skype_name'])) {
    		$wcfm_settings_form_data_storetype['skype_name'] = $wcfm_settings_form_data_new['skype_name'];
    	}
    		
    	$wcfm_settings_form = array_merge( $wcfm_settings_form, $wcfm_settings_form_data_storetype );
    	update_user_meta( $user_id, 'wcfmmp_profile_settings', $wcfm_settings_form );
    }

    after updating the wcfm multivendor marketplace plugin, however, although the field is visible in the administration area, it is not publicly visible. I attach this screenshot:
    https://snipboard.io/ANVrUg.jpg

    what happened and how can i fix it?

    thank you

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘WCFM Multivendor Marketplace Update and codes’ is closed to new replies.