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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.