Forums / Addon Shipping Modules / USPS Shipping Module by MarcoB - RateV4, IntlRateV2 - Support Thread

USPS Shipping Module by MarcoB - RateV4, IntlRateV2 - Support Thread

Views: 65,820

Results 241 to 260 of 336
15 Jan 2013, 7:11 AM
#241
nighkidz2 avatar

nighkidz2

New Zenner

Join Date:
Jan 2013
Posts:
9
Plugin Contributions:
0

USPS Shipping Module by MarcoB - RateV4, IntlRateV2 - Support Thread

bulpup:

Oh,... yes I see that now. Suppose I could add it myself?
Hi after i remove and install the usps module it works now. However, after I add an item and checkout. I received a blank page and unable to select the payment method. Can anyone help?

17 Jan 2013, 5:40 AM
#242
nighkidz2 avatar

nighkidz2

New Zenner

Join Date:
Jan 2013
Posts:
9
Plugin Contributions:
0

Re: USPS Shipping Module by MarcoB - RateV4, IntlRateV2 - Support Thread

Ajeh:

That doesn't make a lot of sense ...

You said you installed USPS RateV4 but you are showing the userid for RateV3 ...

Could you do a REMOVE and reload the shipping module via FTP that you think you have installed and say whether it is RateV3 or RateV4 then again do the search in the Developers Tool Kit for:
usps.php

then do an INSTALL and configuration of it in the Shipping ... Modules ... and then a screen shot of what you see in your right hand panel?

Thanks Ajeh. I did a remove and install, and the fields without title are gone. However, I got issue during checkout. P.S the checkout works fine before.
But now when I select a shipping method and go to the next checkout page which is Step 2 of 3 for checkout, a blank page shows. When I check the log, it said that the google analytic file was missing and
[16-Jan-2013 10:19:49] PHP Warning: require(includes/templates/template_default/google_analytics/google_analytics.php) [<a href='function.require'>function.require</a>]: failed to open stream: No such file or directory in /homepages/21/d246008455/htdocs/zencart/includes/templates/xxxx/common/tpl_main_page.php on line 182
[16-Jan-2013 10:19:49] PHP Fatal error: require() [<a href='function.require'>function.require</a>]: Failed opening required 'includes/templates/template_default/google_analytics/google_analytics.php' (include_path='.:/usr/lib/php5') in /homepages/21/d246008455/htdocs/zencart/includes/templates/xxxx/common/tpl_main_page.php on line 182

Will this be the issue? If so how can I fix it?

Thanks in advance.

17 Jan 2013, 5:59 AM
#243
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: USPS Shipping Module by MarcoB - RateV4, IntlRateV2 - Support Thread

nighkidz2:

Thanks Ajeh. I did a remove and install, and the fields without title are gone. However, I got issue during checkout. P.S the checkout works fine before.
But now when I select a shipping method and go to the next checkout page which is Step 2 of 3 for checkout, a blank page shows. When I check the log, it said that the google analytic file was missing and
[16-Jan-2013 10:19:49] PHP Warning: require(includes/templates/template_default/google_analytics/google_analytics.php) [<a href='function.require'>function.require</a>]: failed to open stream: No such file or directory in /homepages/21/d246008455/htdocs/zencart/includes/templates/xxxx/common/tpl_main_page.php on line 182
[16-Jan-2013 10:19:49] PHP Fatal error: require() [<a href='function.require'>function.require</a>]: Failed opening required 'includes/templates/template_default/google_analytics/google_analytics.php' (include_path='.:/usr/lib/php5') in /homepages/21/d246008455/htdocs/zencart/includes/templates/xxxx/common/tpl_main_page.php on line 182

Will this be the issue? If so how can I fix it?

Thanks in advance.

Those issues are unrelated to your USPS issues. But you'll definitely need to fix them. Looks like you've not properly installed your GA plugin, or you've partially removed it and it's still trying to load/use parts of it as a result. Either fully remove the problematic plugin, or fully install it. Don't leave it half-installed.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

22 Jan 2013, 7:00 AM
#244
nighkidz2 avatar

nighkidz2

New Zenner

Join Date:
Jan 2013
Posts:
9
Plugin Contributions:
0

Re: USPS Shipping Module by MarcoB - RateV4, IntlRateV2 - Support Thread

DrByte:

Those issues are unrelated to your USPS issues. But you'll definitely need to fix them. Looks like you've not properly installed your GA plugin, or you've partially removed it and it's still trying to load/use parts of it as a result. Either fully remove the problematic plugin, or fully install it. Don't leave it half-installed.

Hi I fixed the google analytic and now the error was gone. However, I am still getting a blank checkout page on step 2 and the following warning is still there:
[21-Jan-2013 18:42:47] PHP Warning: Cannot modify header information - headers already sent by (output started at /zencart/includes/modules/shipping/usps.php:1) in /zencart/includes/functions/functions_general.php on line 45

Can anyone advise what had happen and I really have no clue on where to start debugging.

Thanks a million.

22 Jan 2013, 7:23 AM
#245
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: USPS Shipping Module by MarcoB - RateV4, IntlRateV2 - Support Thread

nighkidz2:

PHP Warning: Cannot modify header information - headers already sent by (output started at /zencart/includes/modules/shipping/usps.php:1) in ...
A quick FAQ and forum search for that error message brings up this article: http://www.zen-cart.com/content.php?129-warning-headers-already-sent

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

30 Jan 2013, 7:00 AM
#246
spifflifkin avatar

spifflifkin

New Zenner

Join Date:
Aug 2011
Location:
Pacific NW
Posts:
28
Plugin Contributions:
0

Re: USPS Shipping Module by MarcoB - RateV4, IntlRateV2 - Support Thread

Today I noticed that the international first class shipping option wasn't showing. I looked around the forum and found out about the USPS rate changes. I downloaded and updated my shipping module (removed and reinstalled) with the file from here: http://www.zen-cart.com/downloads.php?do=file&id=1292

Now, international first class is showing up but has the wrong box choice showing for both international and domestic. I was using the volume based shipping module. Some of my products are light, but won't fit in a small flat rate box. Right now I stand to loose a lot of money with the wrong shipping options showing.

Does anyone know if there is going to be and update to the volume based module? Or, is there an alternative shipping module that calculated by volume rather than weight?

30 Jan 2013, 7:09 AM
#247
spifflifkin avatar

spifflifkin

New Zenner

Join Date:
Aug 2011
Location:
Pacific NW
Posts:
28
Plugin Contributions:
0

Re: USPS Shipping Module by MarcoB - RateV4, IntlRateV2 - Support Thread

I forgot to add the error I am getting after I installed the new USPS shipping module:

Shipping Configuration errors!
The parameters set in Package Dimensions Config #1 are invalid, please enter valid shipping parameters. Current setting will be overridden with default: 'regular;+'
The parameters set in Package Dimensions Config #2 are invalid.

30 Jan 2013, 2:30 PM
#248
rixstix avatar

rixstix

Totally Zenned

Join Date:
Aug 2009
Location:
North Idaho, USA
Posts:
2,015
Plugin Contributions:
0

Re: USPS Shipping Module by MarcoB - RateV4, IntlRateV2 - Support Thread

Try this if you are comfortable making code edits to the \includes\modules\shipping\usps.php file
NOT the language file as this thread is titled.

This is working for me, but I am not able to offer any support other than the edits that I made.

I have customized the max volume for first class packages to be 12.5 cubic inches for our particular business needs (highlighted in RED). If you are using a different value as your max volume for first class, you will also need to make that edit. The module default was 0, if I remember correctly.

Around line number 248, changes this

'First-Class Mail International Parcel**'=>
        array('maxWeight'=>70, 'maxGL'=>'', 'volume'=>[B]12.5[/B], 'maxLength'=>'', 'maxWidth'=>'','maxHeight'=>'', 'name'=>'First Class Mail Int Parcel'), // ID="15" 

to THIS

'First-Class [B]Package International Service[/B]**'=>
        array('maxWeight'=>70, 'maxGL'=>'', 'volume'=>[B]12.5[/B], 'maxLength'=>'', 'maxWidth'=>'','maxHeight'=>'', 'name'=>'First Class Mail Int [B]Package[/B]'), // ID="15" 

around line 276
Change this

'First Class Mail Int Parcel' => 'First-Class Mail International Parcel**',

to this

'First Class Mail Int Parcel' => 'First-Class [B]Package International Service[/B]**',

Many thanks to Ajeh for her help with the changes.

Rick
RixStix (dot) com
aka: ChainWeavers (dot) com

30 Jan 2013, 4:25 PM
#249
spifflifkin avatar

spifflifkin

New Zenner

Join Date:
Aug 2011
Location:
Pacific NW
Posts:
28
Plugin Contributions:
0

Re: USPS Shipping Module by MarcoB - RateV4, IntlRateV2 - Support Thread

RixStix,

Is the a mod to the volume based module or the new USPS shipping module?

One other question. In the products weight, do you still use the same format that the volume based module used?

30 Jan 2013, 5:34 PM
#250
rixstix avatar

rixstix

Totally Zenned

Join Date:
Aug 2009
Location:
North Idaho, USA
Posts:
2,015
Plugin Contributions:
0

Re: USPS Shipping Module by MarcoB - RateV4, IntlRateV2 - Support Thread

What I listed is based upon the mod listed subject of this thread.

USPS RateV4, IntlRateV2

Can't help you with weight based filter other than what is listed in the mod's ReadMe file. Never had a use for weight based filtering.

Rick
RixStix (dot) com
aka: ChainWeavers (dot) com

6 Feb 2013, 12:13 AM
#251
spifflifkin avatar

spifflifkin

New Zenner

Join Date:
Aug 2011
Location:
Pacific NW
Posts:
28
Plugin Contributions:
0

Re: USPS Shipping Module by MarcoB - RateV4, IntlRateV2 - Support Thread

Is that a mod to the old USPS file or the new one?

6 Feb 2013, 1:40 AM
#252
rixstix avatar

rixstix

Totally Zenned

Join Date:
Aug 2009
Location:
North Idaho, USA
Posts:
2,015
Plugin Contributions:
0

Re: USPS Shipping Module by MarcoB - RateV4, IntlRateV2 - Support Thread

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.

Rick
RixStix (dot) com
aka: ChainWeavers (dot) com

6 Feb 2013, 5:54 AM
#253
spifflifkin avatar

spifflifkin

New Zenner

Join Date:
Aug 2011
Location:
Pacific NW
Posts:
28
Plugin Contributions:
0

Re: USPS Shipping Module by MarcoB - RateV4, IntlRateV2 - Support Thread

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!

10 Feb 2013, 6:09 AM
#254
spifflifkin avatar

spifflifkin

New Zenner

Join Date:
Aug 2011
Location:
Pacific NW
Posts:
28
Plugin Contributions:
0

Re: USPS Shipping Module by MarcoB - RateV4, IntlRateV2 - Support Thread

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?

10 Feb 2013, 3:14 PM
#255
rixstix avatar

rixstix

Totally Zenned

Join Date:
Aug 2009
Location:
North Idaho, USA
Posts:
2,015
Plugin Contributions:
0

Re: USPS Shipping Module by MarcoB - RateV4, IntlRateV2 - Support Thread

I think adding the second kit has exceeded the weight limit set by the USPS for FirstClass International Package Service which is 4 pounds.

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**'

Rick
RixStix (dot) com
aka: ChainWeavers (dot) com

10 Feb 2013, 6:22 PM
#256
spifflifkin avatar

spifflifkin

New Zenner

Join Date:
Aug 2011
Location:
Pacific NW
Posts:
28
Plugin Contributions:
0

Re: USPS Shipping Module by MarcoB - RateV4, IntlRateV2 - Support Thread

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!!!

10 Feb 2013, 6:42 PM
#257
rixstix avatar

rixstix

Totally Zenned

Join Date:
Aug 2009
Location:
North Idaho, USA
Posts:
2,015
Plugin Contributions:
0

Re: USPS Shipping Module by MarcoB - RateV4, IntlRateV2 - Support Thread

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.

Rick
RixStix (dot) com
aka: ChainWeavers (dot) com

3 Mar 2013, 5:32 PM
#258
bshrc avatar

bshrc

New Zenner

Join Date:
Sep 2010
Posts:
30
Plugin Contributions:
0

Re: USPS Shipping Module by MarcoB - RateV4, IntlRateV2 - Support Thread

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?

4 Mar 2013, 3:18 PM
#259
rixstix avatar

rixstix

Totally Zenned

Join Date:
Aug 2009
Location:
North Idaho, USA
Posts:
2,015
Plugin Contributions:
0

Re: USPS Shipping Module by MarcoB - RateV4, IntlRateV2 - Support Thread

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.

Rick
RixStix (dot) com
aka: ChainWeavers (dot) com

4 Mar 2013, 3:43 PM
#260
bshrc avatar

bshrc

New Zenner

Join Date:
Sep 2010
Posts:
30
Plugin Contributions:
0

Re: USPS Shipping Module by MarcoB - RateV4, IntlRateV2 - Support Thread

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.