Post by YellowSnow » Wed Mar 24, 2010 12:16 am

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. :-\

Newbie

Posts

Joined
Thu Mar 11, 2010 2:15 am

Post by Daniel » Wed Mar 24, 2010 10:43 pm

i don;t think you need to add the patch to the 1.4.0 versions.

OpenCart®
Project Owner & Developer.


User avatar
Administrator

Posts

Joined
Fri Nov 03, 2006 6:57 pm

Post by YellowSnow » Wed Mar 24, 2010 11:12 pm

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.

Newbie

Posts

Joined
Thu Mar 11, 2010 2:15 am

Post by Qphoria » Wed Mar 24, 2010 11:43 pm

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.

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by YellowSnow » Thu Mar 25, 2010 1:23 am

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 ;D

Newbie

Posts

Joined
Thu Mar 11, 2010 2:15 am

Post by Qphoria » Fri Mar 26, 2010 9:35 pm

PM me with an temp admin account to your storeand i can take a look

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by Qphoria » Mon Mar 29, 2010 9:13 pm

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

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by YellowSnow » Mon Mar 29, 2010 9:37 pm

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. :)

Newbie

Posts

Joined
Thu Mar 11, 2010 2:15 am
Who is online

Users browsing this forum: No registered users and 2 guests