Re: USPS RateV4, IntlRateV2 Language File
Is that a mod to the old USPS file or the new one?
Re: USPS RateV4, IntlRateV2 Language File
It depends upon what you are calling the old and new one ??
That code edits the USPS RateV4, IntlRateV2 module so that first class international package service changes on Jan 27, 2013 would be functional.
The plugin has been updated & is available in the download area for that change to Int'l first class and also to remove 1st class and Priority small flat rate products if value exceeds $400 USD.
Re: USPS RateV4, IntlRateV2 Language File
Never mind. I didn't see the new files that were available 2/3. I installed those and it works great! You guys are awesome!!! Thanks!
Re: USPS RateV4, IntlRateV2 Language File
I guess I need a little more help. An international customer pointed out that first class wasn't showing as an option on one of my kits. I changed the code as per RixStix's post in the previous page. That fixed it to a point. If I add 2 kits to the shopping cart it doesn't show first class international. I did some trouble shooting and I believe it's volume related.
My kits use this weight: 1.900000084 (1.9 lbs 84 in^3)
My Package Dimension Config is:
3x4x6;1.0
12x9x3;20.0
12x12x15;+
When I add one kit, the debug output is (first class is shown as a shipping option):
weight: 1.0lb, dimensions: 3x4x6
weight: 10.0lb, dimensions: 12x9x3
weight: +lb, dimensions: 12x12x15
Setting dimensions: l=12 w=9 h=3 for Weight: 2.25
Volume Filtering Enabled. Volume=84" cu
Removed 'Priority Mail International Small Flat Rate Box**'
But, when I add 2 kits the debug outputs (first class is not shown as a shipping option):
weight: 1.0lb, dimensions: 3x4x6
weight: 10.0lb, dimensions: 12x9x3
weight: +lb, dimensions: 12x12x15
Setting dimensions: l=12 w=9 h=3 for Weight: 4.15
Volume Filtering Enabled. Volume=168" cu
Removed 'Priority Mail International Small Flat Rate Box**'
For trouble shooting, I added a lot of small products to the shopping cart to get the volume up over ~160 in^3 and the first class option disappears.
Here is the mod to the code in the modules -> shipping - > UPSP.php
'First-Class Package International Service**'=>
array('maxWeight'=>70, 'maxGL'=>'', 'volume'=>200, 'maxLength'=>'', 'maxWidth'=>'','maxHeight'=>'', 'name'=>'First Class Mail Int Package'), // ID="15" **************I changed 12.5 to 200 to work with the kits. Kits are 84 in^3. But, if someone buys additional items the volume went over 85 in^2 SPIFF 020913**********************
What am I missing?
Re: USPS RateV4, IntlRateV2 Language File
I think adding the second kit has exceeded the weight limit set by the USPS for FirstClass International Package Service which is 4 pounds.
Quote:
But, when I add 2 kits the debug outputs (first class is not shown as a shipping option):
weight: 1.0lb, dimensions: 3x4x6
weight: 10.0lb, dimensions: 12x9x3
weight: +lb, dimensions: 12x12x15
Setting dimensions: l=12 w=9 h=3 for Weight: 4.15
Volume Filtering Enabled. Volume=168" cu
Removed 'Priority Mail International Small Flat Rate Box**'
Re: USPS RateV4, IntlRateV2 Language File
Sounds good. That makes sense about the weight. I missed that.
There still seems to be something not quite right about the volume filtering. I can add parts exceeding the 3x4x6 box volume and it still picks the 3x4x6. Also, after 160 in^3 international first class gets dropped even though the weight is well below the limit.
For now, these scenarios haven't affected me so it's all good!!!
Re: USPS RateV4, IntlRateV2 Language File
I'm pretty sure that the volume filtering only works with the USPS flatrate products or classes that have a max volume entered within the code.
Also, IIRC, when you have volume filtering enabled that any configuration entered into the weight area is ignored.
Re: USPS RateV4, IntlRateV2 Language File
Big thanks to Marco B, Ajeh, and RixStix for the development, testing, and information in this thread.
I am currently trying to upgrade from Ratev3 (@version $Id: usps.php 18348F 2012-01-22 01:22:00Z ajeh $ ) to the latest Ratev4 IntRateV2 on ZC V 1.3.9h. Since Parcel selection is not carrying over to the checkout page since the USPS change to Parcel Select.
Following the instructions of the latest release download which looks to be 1.3 even though HTML file still reads 1.21 and 1.21a.
I have followed the steps below:
Uninstalled the USPS module.
Migrated patch/upgrade files to the corresponding locations on my server.
Installed USPS module.
Entered configuration settings.
Validated no conflicting shipping and/or payment modules exist.
I chose not to install the volume based shipping SQL just yet.
During testing the shipping estimator section in the checkout and Step 2 of checkout page I get a blank page which tells me I did something wrong. Checking the log files points to a getName() function as seen below.
[03-Mar-2013 08:21:38] PHP Fatal error: Call to a member function getName() on a non-object in ../includes/modules/shipping/usps.php on line 904
I have reverted back to my backup files and everything is functioning as it was previously. What step am I missing to complete the upgrade/conversion to Ratev4?
Re: USPS RateV4, IntlRateV2 Language File
I can't be of much help other than saying I didn't touch that part of the code for the recent USPS changes since we don't use Parcel Select.
It looks like that line of the code deals with US Territories if that helps.
Re: USPS RateV4, IntlRateV2 Language File
Quote:
Originally Posted by
RixStix
I can't be of much help other than saying I didn't touch that part of the code for the recent USPS changes since we don't use Parcel Select.
It looks like that line of the code deals with US Territories if that helps.
Thanks for the response, Rix. I checked that the only region defined is a region for tax purposes. I doubt that is what the US Territories refers to and I am unable to debug further than this line. I tried deselecting the Parcel Select option and it returned with the same error. Would there be any need for me to install Ratev4 from version 1.0 and then upgrade to current? I didn't see anything additional in the versions in between in terms of update files other than the language file.