Page 1 of 1
[v1.4.0] USPS Shipping
Posted: Wed Mar 24, 2010 12:16 am
by YellowSnow
Hey All,
I have enabled my shipping module for USPS on my cart, signed up for the USPS web tools, made sure the product I am adding to the cart has at least 1lb for a weight, I uploaded Qphoria's USPS patch found here
http://forum.opencart.com/viewtopic.php ... 838#p39586. And the module still doesn't show at checkout. You can test here:
http://www.mattheessens.com/key-west-restaurants/ ... The USPS module is enabled and I am using PayPal as the payment processor. I have set up my GEO Zone to United States (which I created and set to "All Zones" within the US). I tried checking out as a Guest...maybe this has something to do with it? This is my last resort guys. Any help would be greatly appreciated.

Re: [v1.4.0] USPS Shipping
Posted: Wed Mar 24, 2010 10:43 pm
by Daniel
i don;t think you need to add the patch to the 1.4.0 versions.
Re: [v1.4.0] USPS Shipping
Posted: Wed Mar 24, 2010 11:12 pm
by YellowSnow
Daniel,
I've replaced the USPS patch with the original 1.4.0 USPS file and it still doesn't show.
Thank you for the response.
Re: [v1.4.0] USPS Shipping
Posted: Wed Mar 24, 2010 11:43 pm
by Qphoria
the 1.4.0 patch has the weight fix
USPS requires weight to be in LBS
The 1.4.0 code used:
Code: Select all
$weight = $this->cart->getWeight();
Which would return the weight in the weight unit set in the settings. I added the conversion to lbs by replacing it with:
Code: Select all
$query = $this->db->query("SELECT DISTINCT weight_class_id FROM " . DB_PREFIX . "weight_class WHERE unit = 'lb'");
$weight = $this->weight->convert($this->cart->getWeight(), $this->config->get('config_weight_class_id'), $query->row['weight_class_id']);
It appears you added a fix for weight like this to the 1.4.4 so it shouldn't be needed past that.
Re: [v1.4.0] USPS Shipping
Posted: Thu Mar 25, 2010 1:23 am
by YellowSnow
Qphoria,
I replaced:
Code: Select all
$weight = $this->cart->getWeight();
with:
Code: Select all
$query = $this->db->query("SELECT DISTINCT weight_class_id FROM " . DB_PREFIX . "weight_class WHERE unit = 'lb'");
$weight = $this->weight->convert($this->cart->getWeight(), $this->config->get('config_weight_class_id'), $query->row['weight_class_id']);
Still no luck on it showing up....I made sure that my USPS Web tools info is correct in the backend.
Here are my settings for the USPS Shipping Module:
* User ID: 310xxxxxxxxx
* Password: 726xxxxxxxxx
* Zip Code: 330xx
Domestic Services: First-Class
International Services: None selected
Size: Regular
Container: Rectangular
Machinable: Yes
Dimensions (L x W x H): 8x6x6
Girth: 1
Tax Class: None
Geo Zone: United States
Status: Enabled
Sort Order: 1
Thats all I have....I have specified a weight for my product in Pounds. Do i have to specify dimensions on the actual product as well? As always, any help would be greatly appreciated.
Thanks

Re: [v1.4.0] USPS Shipping
Posted: Fri Mar 26, 2010 9:35 pm
by Qphoria
PM me with an temp admin account to your storeand i can take a look
Re: [v1.4.0] USPS Shipping
Posted: Mon Mar 29, 2010 9:13 pm
by Qphoria
Ok I took a look.
You have 1 service selected. FirstClass
FirstClass is only good up to 13oz. I'm betting all the products in the store are more than 13oz. Enable more options and try it
Re: [v1.4.0] USPS Shipping
Posted: Mon Mar 29, 2010 9:37 pm
by YellowSnow
Qphoria wrote:Ok I took a look.
You have 1 service selected. FirstClass
FirstClass is only good up to 13oz. I'm betting all the products in the store are more than 13oz. Enable more options and try it
Hey Qphoria,
I selected all of the services that USPS offers and then set my product from "Pounds" in the drop down menu to "Ounces" and I set one of my products to 5.00 Ounces (4 Cookies)... still no luck on it showing up at check out. Please let me know of any other options.
Thank You.
