Post by openinteractive » Tue Aug 13, 2013 6:18 am

With the recent USPS update, our first class shipping options have stopped appearing during checkout. I have searched the forums, and found several threads relating to the USPS update, but none of the fixes mentioned have solved the problem we are seeing.

We have weight values added for product options only, because we are using product options to distinguish between music formats (Vinyl, CD, MP3 etc.). Our base products have no weight value (0.00), otherwise the weight of the product and the weight of the options get added together.

I noticed that If I add a value to the product directly into the data tab, during checkout the first class shipping option is available.
So this tells me that for some reason, the shipping module is not getting the option weight value for some reason.

Again, until the recent USPS update, this was all working properly.

We are running OpenCart Version 1.5.2.1

Does anyone have any ideas what might be happening? or ideas that may solve the problem?


Posts

Joined
Wed May 30, 2012 4:09 am

Post by JohnM » Tue Sep 17, 2013 8:23 pm

I'm still having issues as well. You would think that OC would have released a updated patch or something, and announced it.

Someone had to created a plugin to fix it...
http://www.opencart.com/index.php?route ... n_id=13043

...but OC should be providing for free. I haven't tried it yet.

This method seem to help some people but i did not have success with it...
http://forum.opencart.com/viewtopic.php ... 6&start=20
...guess I'll try it again.

Newbie

Posts

Joined
Thu Jun 07, 2012 1:28 am

Post by Qphoria » Tue Sep 17, 2013 10:28 pm

JohnM wrote: This method seem to help some people but i did not have success with it...
http://forum.opencart.com/viewtopic.php ... 6&start=20
...guess I'll try it again.
This is the correct change and even in the reply that you linked it says it works. I can confirm this is the only fix and works correctly. Any issue with option weights was either broke before or it's all in your head (I'm checking that code now). This change is strictly for fixing the display due to a recent USPS change. Consider it to be the patch.

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by Qphoria » Tue Sep 17, 2013 10:59 pm

I've checked the code. It DOES support option weight correctly. This isn't even coded to the USPS or any shipping module. It uses the value from the cart class for "$this->cart->getWeight()" which gets the value set in the system/library/cart.php file

Code: Select all

'weight'                    => ($product_query->row['weight'] + $option_weight) * $quantity,
So this is working correctly and uses the same weight call as all other places in the cart.

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am
Who is online

Users browsing this forum: No registered users and 1 guest