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 . '">'; } }?> Link to comment https://forums.phpfreaks.com/topic/77349-solved-shipping-function-help/ 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? ??? Link to comment https://forums.phpfreaks.com/topic/77349-solved-shipping-function-help/#findComment-391595 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.