USPS not showing 1st-Class Intl Lg. Env
We allow two different types of International shipping: International 1st-Class Large Envelope, and Priority International. However, the International 1st-Class Envelope does not work with the module. It hasn't been working for a few months, and we just upgraded to the newest module and it still doesn't work. The only 1st-Class option that works is 1st-Class Package Intl Service which is a higher rate than the envelope.
Anyone know how to fix this?
Re: USPS not showing 1st-Class Intl Lg. Env
Could you go to the Modules ... Shipping ... and click on USPS and edit it so that the Debug Log is turned on?
Then, test some quotes and look in the /logs directory and Zip the shipping logs created and attach them to your post, please?
Re: USPS not showing 1st-Class Intl Lg. Env
Where are the logos located? i went to the /logs folder in the root directory but there were no logs for today - and that was after I placed a test order.
Re: USPS not showing 1st-Class Intl Lg. Env
The should show in /logs and start with SHIP_usps_Debug_blahblah.log ...
Be sure to refresh your FTP when you go to look in that directory to see the newest logs ... also make sure that directory is writable with permissions of either 775 or 777, depending on you server ...
Re: USPS not showing 1st-Class Intl Lg. Env
Here are the results from my test order:
Dec 19 2014 11:07:43 --
USPS build: 2014-10-30
Server: production
Quote Request Rate Type: Online
Quote from main_page: quick_checkout
USPS Options (weight, time): --none--
USPS Domestic Transit Time Calculation Mode: NEW
Cart Weight: 0.5
Total Quote Weight: 0.5 Pounds: 0 Ounces: 8
Maximum: 50 Tare Rates: Small/Medium: 0:0 Large: 0:0
Handling method: Order Handling fee Domestic: $0.70 Handling fee International: $0.70
Decimals: 3
Domestic Length: 8.625 Width: 5.375 Height: 1.625
International Length: 9.50 Width: 1.0 Height: 5.50
All Packages are Machinable: True
Enable USPS First-Class filter for US shipping: True
Sorts the returned quotes: Price-LowToHigh
ZipOrigination: 14615
ZipDestination: 14615 City: Rochester State: New York
Order SubTotal: $27.00
Order Total: $28.08
Uninsurable Portion: $0.00
Insurable Value: $28.08
RESPONSE FROM USPS:
==================================
<?xml version="1.0" encoding="UTF-8"?>
<RateV4Response>
<Package ID="0"><ZipOrigination>14615</ZipOrigination><ZipDestination>14615</ZipDestination><Pounds>0</Pounds><Ounces>8</Ounces><FirstClassMailType>FLAT</FirstClassMailType><Size>REGULAR</Size><Machinable>TRUE</Machinable><Zone>1</Zone>
<Postage CLASSID="0"><MailService>First-Class MailRM Large Envelope</MailService>
<Rate>2.45</Rate>
<SpecialServices><SpecialService>
<ServiceID>9</ServiceID><ServiceName>Certificate of Mailing (Form 3817)</ServiceName><Available>true</Available><Price>1.30</Price></SpecialService><SpecialService>
<ServiceID>160</ServiceID><ServiceName>Certificate of Mailing (Form 3877)</ServiceName><Available>true</Available><Price>0.47</Price></SpecialService><SpecialService>
<ServiceID>0</ServiceID><ServiceName>Certified MailRM</ServiceName><Available>true</Available><Price>3.30</Price></SpecialService><SpecialService>
<ServiceID>6</ServiceID><ServiceName>Collect on Delivery</ServiceName><Available>true</Available><Price>6.95</Price><DeclaredValueRequired>true</DeclaredValueRequired><DueSenderRequired>false</DueSenderRequired></SpecialService><SpecialService>
<ServiceID>1</ServiceID><ServiceName>Insurance</ServiceName><Available>true</Available><Price>2.10</Price><DeclaredValueRequired>true</DeclaredValueRequired><DueSenderRequired>false</DueSenderRequired></SpecialService><SpecialService>
<ServiceID>5</ServiceID><ServiceName>Registered MailTM</ServiceName><Available>true</Available><Price>12.75</Price><DeclaredValueRequired>true</DeclaredValueRequired><DueSenderRequired>false</DueSenderRequired></SpecialService></SpecialServices>
</Postage></Package>
<Package ID="1"><ZipOrigination>14615</ZipOrigination><ZipDestination>14615</ZipDestination><Pounds>0</Pounds><Ounces>8</Ounces><Container>VARIABLE</Container><Size>REGULAR</Size><Zone>1</Zone>
<Postage CLASSID="1"><MailService>Priority Mail 1-DayTM</MailService>
<Rate>5.75</Rate><CommercialRate>5.05</CommercialRate>
<SpecialServices><SpecialService>
<ServiceID>19</ServiceID><ServiceName>Adult Signature Required</ServiceName><Available>true</Available><AvailableOnline>true</AvailableOnline><Price>5.20</Price><PriceOnline>5.20</PriceOnline></SpecialService><SpecialService>
<ServiceID>20</ServiceID><ServiceName>Adult Signature Restricted Delivery</ServiceName><Available>true</Available><AvailableOnline>true</AvailableOnline><Price>5.45</Price><PriceOnline>5.45</PriceOnline></SpecialService><SpecialService>
<ServiceID>9</ServiceID><ServiceName>Certificate of Mailing (Form 3817)</ServiceName><Available>true</Available><AvailableOnline>true</AvailableOnline><Price>1.30</Price><PriceOnline>1.30</PriceOnline></SpecialService><SpecialService>
<ServiceID>160</ServiceID><ServiceName>Certificate of Mailing (Form 3877)</ServiceName><Available>true</Available><AvailableOnline>true</AvailableOnline><Price>0.47</Price><PriceOnline>0.47</PriceOnline></SpecialService><SpecialService>
<ServiceID>0</ServiceID><ServiceName>Certified MailRM</ServiceName><Available>true</Available><AvailableOnline>true</AvailableOnline><Price>3.30</Price><PriceOnline>3.30</PriceOnline></SpecialService><SpecialService>
<ServiceID>6</ServiceID><ServiceName>Collect on Delivery</ServiceName><Available>true</Available><AvailableOnline>true</AvailableOnline><Price>6.95</Price><PriceOnline>6.95</PriceOnline><DeclaredValueRequired>true</DeclaredValueRequired><DueSenderRequired>false</DueSenderRequired></SpecialService><SpecialService>
<ServiceID>1</ServiceID><ServiceName>Insurance</ServiceName><Available>true</Available><AvailableOnline>true</AvailableOnline><Price>0.00</Price><PriceOnline>0.00</PriceOnline><DeclaredValueRequired>true</DeclaredValueRequired><DueSenderRequired>false</DueSenderRequired></SpecialService><SpecialService>
<ServiceID>5</ServiceID><ServiceName>Registered MailTM</ServiceName><Available>true</Available><AvailableOnline>true</AvailableOnline><Price>12.75</Price><PriceOnline>12.75</PriceOnline><DeclaredValueRequired>true</DeclaredValueRequired><DueSenderRequired>false</DueSenderRequired></SpecialService><SpecialService>
<ServiceID>7</ServiceID><ServiceName>Return Receipt for Merchandise</ServiceName><Available>true</Available><AvailableOnline>true</AvailableOnline><Price>4.40</Price><PriceOnline>4.40</PriceOnline></SpecialService><SpecialService>
<ServiceID>15</ServiceID><ServiceName>Signature ConfirmationTM Electronic</ServiceName><Available>true</Available><AvailableOnline>true</AvailableOnline><Price>2.35</Price><PriceOnline>2.35</PriceOnline></SpecialService><SpecialService>
<ServiceID>13</ServiceID><ServiceName>USPS TrackingTM Electronic</ServiceName><Available>true</Available><AvailableOnline>true</AvailableOnline><Price>0.00</Price><PriceOnline>0.00</PriceOnline></SpecialService></SpecialServices>
</Postage></Package>
</RateV4Response>
==================================
USPS Country - $this->countries[$order->delivery[country][iso_code_2]]: $this->usps_countries: US
USPS DOMESTIC CHECKED: Online
Package ID sent: 0 First-Class Mail Large Envelope - min: 0 max: .8125 handling: 0.00
Package ID sent: 1 Priority MailTM - min: 0 max: 70 handling: 0.00
USPS DOMESTIC RETURNED:
Package ID returned: 0 $requested_type: First-Class Mail Large Envelope $service: First-Class Mail $Container: VARIABLE
Package ID returned: 1 $requested_type: Priority MailTM $service: PRIORITY COMMERCIAL $Container: VARIABLE
==================================
Domestic Services Selected:
==================================
SENT TO USPS:
<RateV4Request USERID="720FRIGH5091">
<Revision>2</Revision>
<Package ID="0">
<Service>First-Class Mail</Service>
<FirstClassMailType>FLAT</FirstClassMailType>
<ZipOrigination>14615</ZipOrigination>
<ZipDestination>14615</ZipDestination>
<Pounds>0</Pounds>
<Ounces>8</Ounces>
<Container>VARIABLE</Container>
<Size>REGULAR</Size>
<Value>28.08</Value>
<Machinable>TRUE</Machinable>
</Package>
<Package ID="1">
<Service>PRIORITY COMMERCIAL</Service>
<ZipOrigination>14615</ZipOrigination>
<ZipDestination>14615</ZipDestination>
<Pounds>0</Pounds>
<Ounces>8</Ounces>
<Container>VARIABLE</Container>
<Size>REGULAR</Size>
<Value>28.08</Value>
<Machinable>TRUE</Machinable>
</Package>
</RateV4Request>
============
RAW XML FROM USPS:
SimpleXMLElement Object
(
[Package] => Array
(
[0] => SimpleXMLElement Object
(
[@attributes] => Array
(
[ID] => 0
)
[ZipOrigination] => 14615
[ZipDestination] => 14615
[Pounds] => 0
[Ounces] => 8
[FirstClassMailType] => FLAT
[Size] => REGULAR
[Machinable] => TRUE
[Zone] => 1
[Postage] => SimpleXMLElement Object
(
[@attributes] => Array
(
[CLASSID] => 0
)
[MailService] => First-Class Mail<sup>®</sup> Large Envelope
[Rate] => 2.45
[SpecialServices] => SimpleXMLElement Object
(
[SpecialService] => Array
(
[0] => SimpleXMLElement Object
(
[ServiceID] => 9
[ServiceName] => Certificate of Mailing (Form 3817)
[Available] => true
[Price] => 1.30
)
[1] => SimpleXMLElement Object
(
[ServiceID] => 160
[ServiceName] => Certificate of Mailing (Form 3877)
[Available] => true
[Price] => 0.47
)
[2] => SimpleXMLElement Object
(
[ServiceID] => 0
[ServiceName] => Certified Mail<sup>®</sup>
[Available] => true
[Price] => 3.30
)
[3] => SimpleXMLElement Object
(
[ServiceID] => 6
[ServiceName] => Collect on Delivery
[Available] => true
[Price] => 6.95
[DeclaredValueRequired] => true
[DueSenderRequired] => false
)
[4] => SimpleXMLElement Object
(
[ServiceID] => 1
[ServiceName] => Insurance
[Available] => true
[Price] => 2.10
[DeclaredValueRequired] => true
[DueSenderRequired] => false
)
[5] => SimpleXMLElement Object
(
[ServiceID] => 5
[ServiceName] => Registered Mail<sup>™</sup>
[Available] => true
[Price] => 12.75
[DeclaredValueRequired] => true
[DueSenderRequired] => false
)
)
)
)
)
[1] => SimpleXMLElement Object
(
[@attributes] => Array
(
[ID] => 1
)
[ZipOrigination] => 14615
[ZipDestination] => 14615
[Pounds] => 0
[Ounces] => 8
[Container] => VARIABLE
[Size] => REGULAR
[Zone] => 1
[Postage] => SimpleXMLElement Object
(
[@attributes] => Array
(
[CLASSID] => 1
)
[MailService] => Priority Mail 1-Day<sup>™</sup>
[Rate] => 5.75
[CommercialRate] => 5.05
[SpecialServices] => SimpleXMLElement Object
(
[SpecialService] => Array
(
[0] => SimpleXMLElement Object
(
[ServiceID] => 19
[ServiceName] => Adult Signature Required
[Available] => true
[AvailableOnline] => true
[Price] => 5.20
[PriceOnline] => 5.20
)
[1] => SimpleXMLElement Object
(
[ServiceID] => 20
[ServiceName] => Adult Signature Restricted Delivery
[Available] => true
[AvailableOnline] => true
[Price] => 5.45
[PriceOnline] => 5.45
)
[2] => SimpleXMLElement Object
(
[ServiceID] => 9
[ServiceName] => Certificate of Mailing (Form 3817)
[Available] => true
[AvailableOnline] => true
[Price] => 1.30
[PriceOnline] => 1.30
)
[3] => SimpleXMLElement Object
(
[ServiceID] => 160
[ServiceName] => Certificate of Mailing (Form 3877)
[Available] => true
[AvailableOnline] => true
[Price] => 0.47
[PriceOnline] => 0.47
)
[4] => SimpleXMLElement Object
(
[ServiceID] => 0
[ServiceName] => Certified Mail<sup>®</sup>
[Available] => true
[AvailableOnline] => true
[Price] => 3.30
[PriceOnline] => 3.30
)
[5] => SimpleXMLElement Object
(
[ServiceID] => 6
[ServiceName] => Collect on Delivery
[Available] => true
[AvailableOnline] => true
[Price] => 6.95
[PriceOnline] => 6.95
[DeclaredValueRequired] => true
[DueSenderRequired] => false
)
[6] => SimpleXMLElement Object
(
[ServiceID] => 1
[ServiceName] => Insurance
[Available] => true
[AvailableOnline] => true
[Price] => 0.00
[PriceOnline] => 0.00
[DeclaredValueRequired] => true
[DueSenderRequired] => false
)
[7] => SimpleXMLElement Object
(
[ServiceID] => 5
[ServiceName] => Registered Mail<sup>™</sup>
[Available] => true
[AvailableOnline] => true
[Price] => 12.75
[PriceOnline] => 12.75
[DeclaredValueRequired] => true
[DueSenderRequired] => false
)
[8] => SimpleXMLElement Object
(
[ServiceID] => 7
[ServiceName] => Return Receipt for Merchandise
[Available] => true
[AvailableOnline] => true
[Price] => 4.40
[PriceOnline] => 4.40
)
[9] => SimpleXMLElement Object
(
[ServiceID] => 15
[ServiceName] => Signature Confirmation<sup>™</sup> Electronic
[Available] => true
[AvailableOnline] => true
[Price] => 2.35
[PriceOnline] => 2.35
)
[10] => SimpleXMLElement Object
(
[ServiceID] => 13
[ServiceName] => USPS Tracking<sup>™</sup> Electronic
[Available] => true
[AvailableOnline] => true
[Price] => 0.00
[PriceOnline] => 0.00
)
)
)
)
)
)
)
==================================
Domestic Services Selected:
==================================
Re: USPS not showing 1st-Class Intl Lg. Env
The logs are pretty hard to read when not Zipped, but let me take a stab in the dark on what should work for you ...
Edit the USPS module in your Zen Cart Admin and try changing the setting of the International width from 1.0 to 0.75 and see if this works for you ...
1 Attachment(s)
Re: USPS not showing 1st-Class Intl Lg. Env
Sorry about not zipping them. See attached for more zipped logs.
We changed it to .75 but it is still not showing up. Not sure what is going on.
Re: USPS not showing 1st-Class Intl Lg. Env
Could you please edit your USPS and change the setting for:
Quote:
Enter the International
USPS minimum Width
Enter the Minimum Width - default 1.0
from 1.0 to 0.75 and save that then test the International shipping?
1 Attachment(s)
Re: USPS not showing 1st-Class Intl Lg. Env
Ok, I tried placing an order with it set to .75. It still did not show up and defaulted to Priority Mail International. Here is the log.
Re: USPS not showing 1st-Class Intl Lg. Env
Found it ...
You also need a code change due to your Shipping Method options you need to force the size ... try adding the code in RED:
Code:
// rudimentary dimensions, since they cannot be passed as blanks
if ($intl_gxg_requested) {
// obtain the most International settings
// $width = 1;
// $length = 9.5;
// $height = 5.5;
$width = MODULE_SHIPPING_USPS_WIDTH_INTL;
$length = MODULE_SHIPPING_USPS_LENGTH_INTL;
$height = MODULE_SHIPPING_USPS_HEIGHT_INTL;
$girth = 0;
} else {
/*
$width = MODULE_SHIPPING_USPS_WIDTH;
$length = MODULE_SHIPPING_USPS_LENGTH;
$height = MODULE_SHIPPING_USPS_HEIGHT;
$girth = 0;
*/
$width = MODULE_SHIPPING_USPS_WIDTH_INTL;
$length = MODULE_SHIPPING_USPS_LENGTH_INTL;
$height = MODULE_SHIPPING_USPS_HEIGHT_INTL;
$girth = 0;
}
This is something that is being looked into for a future USPS update ...
Let us know if the width of 0.75 and the code change works for you ...
Re: USPS not showing 1st-Class Intl Lg. Env
That seemed to work! Thanks!
Re: USPS not showing 1st-Class Intl Lg. Env
Thanks for the update that this is now working for you ... :smile: