Jump to content

[SOLVED] Shipping function help


darkfreaks

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.