• Hello!

    Not sure if this is a issue for the “Register Helper” addOn or for the “State Dropdown” addOn…

    Im using this code, but I cannot update the country/state on profile user page. When I change the country/state and click save, I get the message “profile changed”, but when I refresh the page, the changes are not saved.
    This happens on the WP-admin page and frontend page too.

    Thanks for your help!!!!

    function add_billing_fields_to_profile()
    {
    	
    	global $bcountry;
    	global $bstate;
    	
    	//check for register helper
    	if(!function_exists("pmprorh_add_registration_field"))
    		return;
    	
    	//define the fields
    	
    	
    	$fields = array();
    	$fields[] = new PMProRH_Field(
    		"bcountry", 
    		"select", 
    		array('label'=>'Pais:', 
    			"options"=>array
    			(
    			$bcountry
    			),
    			"profile"=>true, "required"=>true,
    		)
    	);
    	$fields[] = new PMProRH_Field(
    		"bstate", 
    		"select", 
    		array('label'=>'Provincia:', 
    			"options"=>array
    			(
    			$bstate
    			),
    			"profile"=>true, "required"=>true,
    		)
    	);
    	
     //add the fields into a new checkout_boxes are of the checkout page
    	
    	foreach($fields as $field)
    		pmprorh_add_registration_field("profile", $field);
    }
    add_action("init", "add_billing_fields_to_profile");
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Not updating profile…’ is closed to new replies.