darkfreaks Posted November 14, 2007 Share Posted November 14, 2007 ok so the shipping page comes up blank with "USPS ERROR: User ID or Password was empty. Please make sure this has been added correctly to the admin side of your store." but the thing is is the username is in the database and is showing on both the user and admin side? i believe this is just poor coding that needs to be redone any ideas? <?php function USPS($user_id, $password, $api = 'RateV3') { if(empty($user_id) || empty($password)) { $this->debug("USPS ERROR: User ID or Password was empty. Please make sure this has been added correctly to the admin side of your store."); return false; } else { $this->user_id = $user_id; $this->password = $password; $this->api = $api; $this->request_xml = '<' . $api . 'Request USERID="' . $user_id . '" PASSWORD="' . $password . '">'; } }?> Quote Link to comment Share on other sites More sharing options...
darkfreaks Posted November 14, 2007 Author Share Posted November 14, 2007 i tried changing it to if($user_id=="" || $password=="") { and removed an extra double quote on line 232 but no luck. should i make it so if it says if true do this else return false maybe? ??? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.