Post by shamanicconnection » Thu Dec 18, 2014 1:29 am

Thank you for taking the time to review my modifications and to modify the code to suit my wants. I definitely appreciate your assistance. It works beautifully, even if it's not pretty ;D

It's nice to let customers know how long the different shipping methods are expected to take.

For anyone else who is looking to display a rough estimate on shipping times (other than what is given by the Post Office), here is what we did to modify the xml file:

After "$result = str_replace(' 2-3 Days', '', $result);" (about line 25) insert:

Code: Select all

//The next 4 lines search for the service names, and replace them with the modified version
            $result = str_replace('Priority Mail™', 'Priority Mail™ (2-3 Days)', $result);
            $result = str_replace('Priority Mail Express™', 'Priority Mail Express™ (1-3 Days)', $result);
            $result = str_replace('Standard Post®', 'Standard Post® (2-9 Days)', $result);
            $result = str_replace('First-Class Mail® Parcel;', 'First-Class Mail® (2-5 Days)', $result);]]>
Then again around line 72 (just before <file name="admin/language/english/shipping/usps.php" error="log">) add:

Code: Select all

<!-- Optional Code for adding shipping estimates to First Class methods -->        
        <operation>
           <search position="after" offset="13"><![CDATA[} elseif ($this->config->get('usps_domestic_' . $classid)) {]]></search>
           <add><![CDATA[                                 if($quote_data[$classid]['title'] == 'First-Class Mail&#174; Parcel') {
                                    $quote_data[$classid]['title'] = 'First-Class Mail&#174; Parcel (2-5 Days)';
                                 }]]></add>
        </operation>
        <operation>
           <search position="after" offset="13"><![CDATA[if (($this->config->get('usps_domestic_' . $classid))) {]]></search>
           <add><![CDATA[                                 if($quote_data[$classid]['title'] == 'First-Class Mail&#174; Parcel') {
                                    $quote_data[$classid]['title'] = 'First-Class Mail&#174; Parcel (2-5 Days)';
                                 }]]></add>
        </operation>
Thanks again- Debbie


Posts

Joined
Tue Nov 25, 2014 2:15 am

Post by asiegbucp » Sun Dec 21, 2014 1:33 pm

Hello, the extension does not pull cheaper online price.
All I get is the normal expensive price.
Please I need assistance as soon as possible.

I use Opencart 1.5.6.4 on a custom theme "Oxy"
I am expecting your reply.
Thank you for your time.

This is the error log that I got:

Code: Select all

2014-12-21 0:46:56 - PHP Warning:  strpos() [<a href='function.strpos'>function.strpos</a>]: Empty needle in /home1/buyomart/public_html/vqmod/vqcache/vq2-catalog_controller_common_header.php on line 163
2014-12-21 0:47:05 - USPS DATA SENT: API=IntlRateV2&XML=<IntlRateV2Request USERID="859BUYOM0194">	<Package ID="1">		<Pounds>6</Pounds>		<Ounces>5.6</Ounces>		<MailType>All</MailType>		<GXG>		  <POBoxFlag>N</POBoxFlag>		  <GiftFlag>N</GiftFlag>		</GXG>		<ValueOfContents>344.344</ValueOfContents>		<Country>Indonesia</Country>		<Container>RECTANGULAR</Container>		<Size>REGULAR</Size>		<Width>4</Width>		<Length>4</Length>		<Height>4</Height>		<Girth></Girth>		<CommercialFlag>N</CommercialFlag>	</Package></IntlRateV2Request>
2014-12-21 0:47:05 - USPS DATA RECV: <?xml version="1.0" encoding="UTF-8"?>
<IntlRateV2Response><Package ID="1"><Prohibitions>Books and periodicals printed in any Indonesian language and published outside of Indonesia, except educational books approved by the Indonesian Department of Commerce.
Cloth and batik designs and sarongs.
Cocoa leaves, dried, undried, or powdered.
Coins; banknotes; currency notes (paper money); securities of any kind payable to bearer; traveler's checks; platinum, gold, or silver (manufactured or not); precious stones; jewelry; and other valuable articles.
Indonesian national currency (rupiahs).
Perishable infectious biological substances.
Radioactive materials.
Used articles including clothing.</Prohibitions><Restrictions>Import licenses are required for commercial shipments. The following articles are not permitted in commercial shipments: articles of gold or silver, including tableware; pens and pencils ornamented with precious metal; calendar watches; linen clothing; natural silk goods; children's toys operated by steam or electricity; leather goods; coffee essences; and coffee substitutes; and molasses and sugar substitutes.</Restrictions><Observations>1. Customs declarations must show both the gross weight of the entire shipment and the net weight of each item in the shipment. 
2. Addressees are required to obtain special authorization to receive gift shipments that contain any articles that are considered "luxury or semi-luxury" items (e.g., various kinds of haberdashery, technical goods, foodstuffs, office supplies, cameras and projectors) by the Indonesian authorities. 
3. Gift shipments must be endorsed "Gift shipment - For the personal use of the addressee."
4. Many articles are subject to an import license or special authorization by the Indonesian authorities. Therefore, senders should ascertain from the addressee before mailing whether the necessary documents are held.</Observations><CustomsForms>First-Class Mail International items and Priority Mail International Flat Rate Envelopes and Small Flat Rate Boxes: 
PS Form 2976 (see 123.61)
Priority Mail International parcels:
PS Form 2976-A inside 2976-E (envelope)</CustomsForms><ExpressMail>Country Code:
ID  

Reciprocal Service Name:  
Express Mail Service (EMS)  

Required Customs Form/Endorsement    
1. Correspondence, business papers, canceled checks, and computer cards and printouts.
No form required. Endorse items clearly next to mailing label as BUSINESS PAPERS.
 
2. Merchandise samples without commercial value, microfilm, microfiche, and magnetic tapes and disks.
PS Form 2976, Customs - CN 22 and Sender's Declaration.
 
3. Merchandise and all articles subject to customs duty.
PS Form 2976-A, Customs Declaration and Dispatch Note CP 72, inside a PS Form 2976-E, Customs Declaration Envelope CP 91.


Note:
Coins; banknotes; currency notes, including paper money; securities of any kind payable to bearer; traveler's checks; platinum, gold, and silver; precious stones; jewelry; watches; and other valuable articles are prohibited in Priority Mail Express International shipments to Indonesia.

Areas Served:

Amboina			97000-97119, 97231-97239 
Balikpapan		76100-76199 (in Kalimantan Island)
Banda Aceh		23000
Bandara Soekarno-Hatta  19101-19109 
Bandung 		40000-40199, 40201-40299 
Banjarmasin		70000-70199, 70201-70299 
Batam			29400-29499 (in Raiu Island) 
Bekasi			17000-17199 
Bengkulu		38000 
Bogor			16000, 16100-16199 
Bontang			75300 
Bukittinggi		26100-26199 
Cianjur			43200 
Cibinong		16900 
Cilegon			42400-42419, 42441-42449 
Cimahi			40500 
Ciputat			15400-15419, 15451-15459 
Cirebon			45100
Denpasar		80000-80199, 80201-80299 (in Bali Island) 
Depok			16400-16499 
Jakarta (Djakarta)	10000-10999, 11000, 12000, 13000, 14000 (except Pulan Seribu), 19101-19109 (in Java Island) 
Jambi			36000 
Jayapura		99000-99119, 99221-99229 
Karawang		41300
Kendari			93000
Kudus			59300
Kupang			85000-85199, 85201-85299 
Lhokseumawe		24300-24399 
Madiun			63100 
Magelang		56100 
Malang			65100-65199 
Manado			95000-95199, 95201-95299 (in Sulawesi Island) 
Mataram			83000 
Medan			20000-20199, 20201-20299 (in Sumatra island)
Mojokerto		61300 
Padang			25000-25199, 25201-25299 (in Sumatra Island) 
Palembang		30000-30199, 30201-30299 
Palu			94000 
Pangkalpinang	33100 
Pekanbaru		28000-28199, 28201-28299 (in Sumatra Island) 
Pondokgede		17400-17499 
Pontianak		78000-78199, 78201-78299 (in Kalimantan Island) 
Purwokerto		53100 
Salatiga		50700 
Samarinda		75000-75199, 75201-75299 
Sawangan		16500-16599 
Semarang		50000-50199, 50201-50299 (in Java Island) 
Serang			42100 
Solo			57100-57119, 57121-57129 
Sukabumi		43100 
Sukoharjo		57500 
Surabaya		60000-60199 (in Java Island), 60400 
Tangeramg		15000-15199 
Tanjungkarang	35000 
Tanjungpinang 	29100-29199
Tarakan			77100
Ujung Pandang	90000-90199, 90201-90299 (in Sulawesi Island) 
Ungaran			50500 
Yogyakarta		55000-55199, 55201-55299</ExpressMail><AreasServed>Please reference Express Mail for Areas Served.</AreasServed><AdditionalRestrictions>No Additional Restrictions Data found.</AdditionalRestrictions><Service ID="4"><Pounds>6</Pounds><Ounces>5.6</Ounces><MailType>All</MailType><GXG><POBoxFlag>N</POBoxFlag><GiftFlag>N</GiftFlag></GXG><Container>RECTANGULAR</Container><Size>REGULAR</Size><Width>4</Width><Length>4</Length><Height>4</Height><Girth>0.0</Girth><Country>INDONESIA</Country><Postage>127.45</Postage><ExtraServices><ExtraService><ServiceID>1</ServiceID><ServiceName>Insurance</ServiceName><Available>True</Available><Price>3.00</Price></ExtraService></ExtraServices><ValueOfContents>344.34</ValueOfContents><SvcCommitments>1 - 3 business days to many major markets</SvcCommitments><SvcDescription>Global Express Guaranteed&#174; (GXG)</SvcDescription><MaxDimensions>Max. length 46", width 35", height 46" and max. length plus girth combined 108"</MaxDimensions><MaxWeight>70</MaxWeight></Service><Service ID="12"><Pounds>6</Pounds><Ounces>5.6</Ounces><MailType>All</MailType><Container>RECTANGULAR</Container><Size>REGULAR</Size><Width>4</Width><Length>4</Length><Height>4</Height><Girth>0.0</Girth><Country>INDONESIA</Country><Postage>127.45</Postage><ExtraServices><ExtraService><ServiceID>1</ServiceID><ServiceName>Insurance</ServiceName><Available>True</Available><Price>3.00</Price></ExtraService></ExtraServices><ValueOfContents>344.34</ValueOfContents><SvcCommitments>1 - 3 business days to many major markets</SvcCommitments><SvcDescription>USPS GXG&#8482; Envelopes</SvcDescription><MaxDimensions>USPS-Produced regular size cardboard envelope (12-1/2" x 9-1/2"), the legal-sized cardboard envelope (15" x 9-1/2") and the GXG Tyvek envelope (15-1/2" x 12-1/2")</MaxDimensions><MaxWeight>70</MaxWeight></Service><Service ID="1"><Pounds>6</Pounds><Ounces>5.6</Ounces><MailType>All</MailType><Container>RECTANGULAR</Container><Size>REGULAR</Size><Width>4</Width><Length>4</Length><Height>4</Height><Girth>0.0</Girth><Country>INDONESIA</Country><Postage>77.75</Postage><ExtraServices><ExtraService><ServiceID>1</ServiceID><ServiceName>Insurance</ServiceName><Available>True</Available><Price>2.35</Price></ExtraService></ExtraServices><ValueOfContents>344.34</ValueOfContents><SvcCommitments>3 - 5 business days to many major markets</SvcCommitments><SvcDescription>Priority Mail Express International&#8482;</SvcDescription><MaxDimensions>Max. length 36", max. length plus girth 79"</MaxDimensions><MaxWeight>66</MaxWeight></Service><Service ID="26"><Pounds>6</Pounds><Ounces>5.6</Ounces><MailType>All</MailType><Container>RECTANGULAR</Container><Size>REGULAR</Size><Width>4</Width><Length>4</Length><Height>4</Height><Girth>0.0</Girth><Country>INDONESIA</Country><Postage>84.95</Postage><ExtraServices><ExtraService><ServiceID>1</ServiceID><ServiceName>Insurance</ServiceName><Available>True</Available><Price>2.35</Price></ExtraService></ExtraServices><ValueOfContents>344.34</ValueOfContents><SvcCommitments>3 - 5 business days to many major markets</SvcCommitments><SvcDescription>Priority Mail Express International&#8482; Flat Rate Boxes</SvcDescription><MaxDimensions>USPS-Produced Box: 13-5/8" x 11-7/8" x 3-3/8" or 11" x 8-1/2" x 5-1/2"<br>Maximum weight 20 pounds.</MaxDimensions><MaxWeight>20</MaxWeight></Service><Service ID="2"><Pounds>6</Pounds><Ounces>5.6</Ounces><MailType>All</MailType><Container>RECTANGULAR</Container><Size>REGULAR</Size><Width>4</Width><Length>4</Length><Height>4</Height><Girth>0.0</Girth><Country>INDONESIA</Country><Postage>62.65</Postage><ExtraServices/><ValueOfContents>344.34</ValueOfContents><InsComment>SERVICE</InsComment><ParcelIndemnityCoverage>82.49</ParcelIndemnityCoverage><SvcCommitments>6 - 10 business days to many major markets</SvcCommitments><SvcDescription>Priority Mail International&#174;</SvcDescription><MaxDimensions>Max. length 42", max. length plus girth combined 79"</MaxDimensions><MaxWeight>44</MaxWeight></Service><Service ID="11"><Pounds>6</Pounds><Ounces>5.6</Ounces><MailType>All</MailType><Container>RECTANGULAR</Container><Size>REGULAR</Size><Width>4</Width><Length>4</Length><Height>4</Height><Girth>0.0</Girth><Country>INDONESIA</Country><Postage>80.50</Postage><ExtraServices/><ValueOfContents>344.34</ValueOfContents><InsComment>SERVICE</InsComment><ParcelIndemnityCoverage>82.49</ParcelIndemnityCoverage><SvcCommitments>6 - 10 business days to many major markets</SvcCommitments><SvcDescription>Priority Mail International&#174; Large Flat Rate Box</SvcDescription><MaxDimensions>USPS-Produced Box: 23-11/16" x 11-3/4" x 3" or 12" x 12" x 5-1/2"<br>Maximum weight 20 pounds.</MaxDimensions><MaxWeight>20</MaxWeight></Service><Service ID="9"><Pounds>6</Pounds><Ounces>5.6</Ounces><MailType>All</MailType><Container>RECTANGULAR</Container><Size>REGULAR</Size><Width>4</Width><Length>4</Length><Height>4</Height><Girth>0.0</Girth><Country>INDONESIA</Country><Postage>61.75</Postage><ExtraServices/><ValueOfContents>344.34</ValueOfContents><InsComment>SERVICE</InsComment><ParcelIndemnityCoverage>82.49</ParcelIndemnityCoverage><SvcCommitments>6 - 10 business days to many major markets</SvcCommitments><SvcDescription>Priority Mail International&#174; Medium Flat Rate Box</SvcDescription><MaxDimensions>USPS-Produced Box: 13-5/8" x 11-7/8" x 3-3/8" or 11" x 8-1/2" x 5-1/2"<br>Maximum weight 20 pounds.</MaxDimensions><MaxWeight>20</MaxWeight></Service></Package></IntlRateV2Response>

Newbie

Posts

Joined
Sat Feb 23, 2013 1:34 am

Post by JeffroDH » Mon Dec 22, 2014 5:00 am

asiegbucp wrote:Hello, the extension does not pull cheaper online price.
All I get is the normal expensive price.
Please I need assistance as soon as possible.

I use Opencart 1.5.6.4 on a custom theme "Oxy"
I am expecting your reply.
Thank you for your time.

This is the error log that I got:

Code: Select all

2014-12-21 0:46:56 - PHP Warning:  strpos() [<a href='function.strpos'>function.strpos</a>]: Empty needle in /home1/buyomart/public_html/vqmod/vqcache/vq2-catalog_controller_common_header.php on line 163
2014-12-21 0:47:05 - USPS DATA SENT: API=IntlRateV2&XML=<IntlRateV2Request USERID="859BUYOM0194">	<Package ID="1">		<Pounds>6</Pounds>		<Ounces>5.6</Ounces>		<MailType>All</MailType>		<GXG>		  <POBoxFlag>N</POBoxFlag>		  <GiftFlag>N</GiftFlag>		</GXG>		<ValueOfContents>344.344</ValueOfContents>		<Country>Indonesia</Country>		<Container>RECTANGULAR</Container>		<Size>REGULAR</Size>		<Width>4</Width>		<Length>4</Length>		<Height>4</Height>		<Girth></Girth>		<CommercialFlag>N</CommercialFlag>	</Package></IntlRateV2Request>
2014-12-21 0:47:05 - USPS DATA RECV: <?xml version="1.0" encoding="UTF-8"?>
<IntlRateV2Response><Package ID="1"><Prohibitions>Books and periodicals printed in any Indonesian language and published outside of Indonesia, except educational books approved by the Indonesian Department of Commerce.
Cloth and batik designs and sarongs.
Cocoa leaves, dried, undried, or powdered.
Coins; banknotes; currency notes (paper money); securities of any kind payable to bearer; traveler's checks; platinum, gold, or silver (manufactured or not); precious stones; jewelry; and other valuable articles.
Indonesian national currency (rupiahs).
Perishable infectious biological substances.
Radioactive materials.
Used articles including clothing.</Prohibitions><Restrictions>Import licenses are required for commercial shipments. The following articles are not permitted in commercial shipments: articles of gold or silver, including tableware; pens and pencils ornamented with precious metal; calendar watches; linen clothing; natural silk goods; children's toys operated by steam or electricity; leather goods; coffee essences; and coffee substitutes; and molasses and sugar substitutes.</Restrictions><Observations>1. Customs declarations must show both the gross weight of the entire shipment and the net weight of each item in the shipment. 
2. Addressees are required to obtain special authorization to receive gift shipments that contain any articles that are considered "luxury or semi-luxury" items (e.g., various kinds of haberdashery, technical goods, foodstuffs, office supplies, cameras and projectors) by the Indonesian authorities. 
3. Gift shipments must be endorsed "Gift shipment - For the personal use of the addressee."
4. Many articles are subject to an import license or special authorization by the Indonesian authorities. Therefore, senders should ascertain from the addressee before mailing whether the necessary documents are held.</Observations><CustomsForms>First-Class Mail International items and Priority Mail International Flat Rate Envelopes and Small Flat Rate Boxes: 
PS Form 2976 (see 123.61)
Priority Mail International parcels:
PS Form 2976-A inside 2976-E (envelope)</CustomsForms><ExpressMail>Country Code:
ID  

Reciprocal Service Name:  
Express Mail Service (EMS)  

Required Customs Form/Endorsement    
1. Correspondence, business papers, canceled checks, and computer cards and printouts.
No form required. Endorse items clearly next to mailing label as BUSINESS PAPERS.
 
2. Merchandise samples without commercial value, microfilm, microfiche, and magnetic tapes and disks.
PS Form 2976, Customs - CN 22 and Sender's Declaration.
 
3. Merchandise and all articles subject to customs duty.
PS Form 2976-A, Customs Declaration and Dispatch Note CP 72, inside a PS Form 2976-E, Customs Declaration Envelope CP 91.


Note:
Coins; banknotes; currency notes, including paper money; securities of any kind payable to bearer; traveler's checks; platinum, gold, and silver; precious stones; jewelry; watches; and other valuable articles are prohibited in Priority Mail Express International shipments to Indonesia.

Areas Served:

Amboina			97000-97119, 97231-97239 
Balikpapan		76100-76199 (in Kalimantan Island)
Banda Aceh		23000
Bandara Soekarno-Hatta  19101-19109 
Bandung 		40000-40199, 40201-40299 
Banjarmasin		70000-70199, 70201-70299 
Batam			29400-29499 (in Raiu Island) 
Bekasi			17000-17199 
Bengkulu		38000 
Bogor			16000, 16100-16199 
Bontang			75300 
Bukittinggi		26100-26199 
Cianjur			43200 
Cibinong		16900 
Cilegon			42400-42419, 42441-42449 
Cimahi			40500 
Ciputat			15400-15419, 15451-15459 
Cirebon			45100
Denpasar		80000-80199, 80201-80299 (in Bali Island) 
Depok			16400-16499 
Jakarta (Djakarta)	10000-10999, 11000, 12000, 13000, 14000 (except Pulan Seribu), 19101-19109 (in Java Island) 
Jambi			36000 
Jayapura		99000-99119, 99221-99229 
Karawang		41300
Kendari			93000
Kudus			59300
Kupang			85000-85199, 85201-85299 
Lhokseumawe		24300-24399 
Madiun			63100 
Magelang		56100 
Malang			65100-65199 
Manado			95000-95199, 95201-95299 (in Sulawesi Island) 
Mataram			83000 
Medan			20000-20199, 20201-20299 (in Sumatra island)
Mojokerto		61300 
Padang			25000-25199, 25201-25299 (in Sumatra Island) 
Palembang		30000-30199, 30201-30299 
Palu			94000 
Pangkalpinang	33100 
Pekanbaru		28000-28199, 28201-28299 (in Sumatra Island) 
Pondokgede		17400-17499 
Pontianak		78000-78199, 78201-78299 (in Kalimantan Island) 
Purwokerto		53100 
Salatiga		50700 
Samarinda		75000-75199, 75201-75299 
Sawangan		16500-16599 
Semarang		50000-50199, 50201-50299 (in Java Island) 
Serang			42100 
Solo			57100-57119, 57121-57129 
Sukabumi		43100 
Sukoharjo		57500 
Surabaya		60000-60199 (in Java Island), 60400 
Tangeramg		15000-15199 
Tanjungkarang	35000 
Tanjungpinang 	29100-29199
Tarakan			77100
Ujung Pandang	90000-90199, 90201-90299 (in Sulawesi Island) 
Ungaran			50500 
Yogyakarta		55000-55199, 55201-55299</ExpressMail><AreasServed>Please reference Express Mail for Areas Served.</AreasServed><AdditionalRestrictions>No Additional Restrictions Data found.</AdditionalRestrictions><Service ID="4"><Pounds>6</Pounds><Ounces>5.6</Ounces><MailType>All</MailType><GXG><POBoxFlag>N</POBoxFlag><GiftFlag>N</GiftFlag></GXG><Container>RECTANGULAR</Container><Size>REGULAR</Size><Width>4</Width><Length>4</Length><Height>4</Height><Girth>0.0</Girth><Country>INDONESIA</Country><Postage>127.45</Postage><ExtraServices><ExtraService><ServiceID>1</ServiceID><ServiceName>Insurance</ServiceName><Available>True</Available><Price>3.00</Price></ExtraService></ExtraServices><ValueOfContents>344.34</ValueOfContents><SvcCommitments>1 - 3 business days to many major markets</SvcCommitments><SvcDescription>Global Express Guaranteed&#174; (GXG)</SvcDescription><MaxDimensions>Max. length 46", width 35", height 46" and max. length plus girth combined 108"</MaxDimensions><MaxWeight>70</MaxWeight></Service><Service ID="12"><Pounds>6</Pounds><Ounces>5.6</Ounces><MailType>All</MailType><Container>RECTANGULAR</Container><Size>REGULAR</Size><Width>4</Width><Length>4</Length><Height>4</Height><Girth>0.0</Girth><Country>INDONESIA</Country><Postage>127.45</Postage><ExtraServices><ExtraService><ServiceID>1</ServiceID><ServiceName>Insurance</ServiceName><Available>True</Available><Price>3.00</Price></ExtraService></ExtraServices><ValueOfContents>344.34</ValueOfContents><SvcCommitments>1 - 3 business days to many major markets</SvcCommitments><SvcDescription>USPS GXG&#8482; Envelopes</SvcDescription><MaxDimensions>USPS-Produced regular size cardboard envelope (12-1/2" x 9-1/2"), the legal-sized cardboard envelope (15" x 9-1/2") and the GXG Tyvek envelope (15-1/2" x 12-1/2")</MaxDimensions><MaxWeight>70</MaxWeight></Service><Service ID="1"><Pounds>6</Pounds><Ounces>5.6</Ounces><MailType>All</MailType><Container>RECTANGULAR</Container><Size>REGULAR</Size><Width>4</Width><Length>4</Length><Height>4</Height><Girth>0.0</Girth><Country>INDONESIA</Country><Postage>77.75</Postage><ExtraServices><ExtraService><ServiceID>1</ServiceID><ServiceName>Insurance</ServiceName><Available>True</Available><Price>2.35</Price></ExtraService></ExtraServices><ValueOfContents>344.34</ValueOfContents><SvcCommitments>3 - 5 business days to many major markets</SvcCommitments><SvcDescription>Priority Mail Express International&#8482;</SvcDescription><MaxDimensions>Max. length 36", max. length plus girth 79"</MaxDimensions><MaxWeight>66</MaxWeight></Service><Service ID="26"><Pounds>6</Pounds><Ounces>5.6</Ounces><MailType>All</MailType><Container>RECTANGULAR</Container><Size>REGULAR</Size><Width>4</Width><Length>4</Length><Height>4</Height><Girth>0.0</Girth><Country>INDONESIA</Country><Postage>84.95</Postage><ExtraServices><ExtraService><ServiceID>1</ServiceID><ServiceName>Insurance</ServiceName><Available>True</Available><Price>2.35</Price></ExtraService></ExtraServices><ValueOfContents>344.34</ValueOfContents><SvcCommitments>3 - 5 business days to many major markets</SvcCommitments><SvcDescription>Priority Mail Express International&#8482; Flat Rate Boxes</SvcDescription><MaxDimensions>USPS-Produced Box: 13-5/8" x 11-7/8" x 3-3/8" or 11" x 8-1/2" x 5-1/2"<br>Maximum weight 20 pounds.</MaxDimensions><MaxWeight>20</MaxWeight></Service><Service ID="2"><Pounds>6</Pounds><Ounces>5.6</Ounces><MailType>All</MailType><Container>RECTANGULAR</Container><Size>REGULAR</Size><Width>4</Width><Length>4</Length><Height>4</Height><Girth>0.0</Girth><Country>INDONESIA</Country><Postage>62.65</Postage><ExtraServices/><ValueOfContents>344.34</ValueOfContents><InsComment>SERVICE</InsComment><ParcelIndemnityCoverage>82.49</ParcelIndemnityCoverage><SvcCommitments>6 - 10 business days to many major markets</SvcCommitments><SvcDescription>Priority Mail International&#174;</SvcDescription><MaxDimensions>Max. length 42", max. length plus girth combined 79"</MaxDimensions><MaxWeight>44</MaxWeight></Service><Service ID="11"><Pounds>6</Pounds><Ounces>5.6</Ounces><MailType>All</MailType><Container>RECTANGULAR</Container><Size>REGULAR</Size><Width>4</Width><Length>4</Length><Height>4</Height><Girth>0.0</Girth><Country>INDONESIA</Country><Postage>80.50</Postage><ExtraServices/><ValueOfContents>344.34</ValueOfContents><InsComment>SERVICE</InsComment><ParcelIndemnityCoverage>82.49</ParcelIndemnityCoverage><SvcCommitments>6 - 10 business days to many major markets</SvcCommitments><SvcDescription>Priority Mail International&#174; Large Flat Rate Box</SvcDescription><MaxDimensions>USPS-Produced Box: 23-11/16" x 11-3/4" x 3" or 12" x 12" x 5-1/2"<br>Maximum weight 20 pounds.</MaxDimensions><MaxWeight>20</MaxWeight></Service><Service ID="9"><Pounds>6</Pounds><Ounces>5.6</Ounces><MailType>All</MailType><Container>RECTANGULAR</Container><Size>REGULAR</Size><Width>4</Width><Length>4</Length><Height>4</Height><Girth>0.0</Girth><Country>INDONESIA</Country><Postage>61.75</Postage><ExtraServices/><ValueOfContents>344.34</ValueOfContents><InsComment>SERVICE</InsComment><ParcelIndemnityCoverage>82.49</ParcelIndemnityCoverage><SvcCommitments>6 - 10 business days to many major markets</SvcCommitments><SvcDescription>Priority Mail International&#174; Medium Flat Rate Box</SvcDescription><MaxDimensions>USPS-Produced Box: 13-5/8" x 11-7/8" x 3-3/8" or 11" x 8-1/2" x 5-1/2"<br>Maximum weight 20 pounds.</MaxDimensions><MaxWeight>20</MaxWeight></Service></Package></IntlRateV2Response>
Not all methods have cheaper online pricing. I'll need the vqmod error logs. If there are none, then the extension is working as expected. Other errors are usually attributed to custom modules.

Active Member

Posts

Joined
Thu Jul 11, 2013 8:29 am

Post by asiegbucp » Mon Dec 22, 2014 7:47 am

There is no VQmod error from your extension. Your extension pulls USPS more expensive rate but not the online rate. Please copy and paste the links below on your browser to see attached screenshots to understand what I mean. My store is located in USA and I ship worldwide but will like to offer customers the cheaper online rate.

Code: Select all

Screenshot links:
http://www.buyomart.com/problem-screenshots/6.png
http://www.buyomart.com/problem-screenshots/5.png
Last edited by asiegbucp on Mon Dec 22, 2014 9:22 am, edited 3 times in total.

Newbie

Posts

Joined
Sat Feb 23, 2013 1:34 am

Post by JeffroDH » Mon Dec 22, 2014 8:02 am

asiegbucp wrote:There is no VQmod error from your extension. Your extension pulls USPS more expensive rate but not the online rate. Please take a look at the two attached screenshot to understand what I mean. My store is located in USA and I ship worldwide but will like to offer customers the cheaper online rate. See the attached screenshots to understand what I mean.
Are you using the latest version of the extension?

Active Member

Posts

Joined
Thu Jul 11, 2013 8:29 am

Post by asiegbucp » Mon Dec 22, 2014 8:05 am

Yes, the version I have is <version>1.4.1</version>

Newbie

Posts

Joined
Sat Feb 23, 2013 1:34 am

Post by JeffroDH » Mon Dec 22, 2014 8:11 am

asiegbucp wrote:Yes, the version I have is <version>1.4.1</version>
add this under the section for the file

Code: Select all

catalog/model/shipping/usps.php

Code: Select all

<operation>
     <search position="replace"><![CDATA[$xml .=	'		<MailType>All</MailType>';]]></search>
     <add><![CDATA[$xml .=	'		<MailType>Online</MailType>';]]></add>
</operation>

Active Member

Posts

Joined
Thu Jul 11, 2013 8:29 am

Post by asiegbucp » Mon Dec 22, 2014 9:14 am

I added the code that I gave me and this is how the xml looks like:

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
<modification>
    <id>Fix USPS Rates for 7/28/2013 API Update</id>
    <version>1.4.1</version>
    <vqmver>1.0.9</vqmver>
    <author>JeffroDH</author>
    <info>Update for changes through September 2014</info>
    <file name="catalog/model/shipping/usps.php" error="log">

	<operation>
     		<search position="replace"><![CDATA[$xml .=   '      <MailType>All</MailType>';]]></search>
     		<add><![CDATA[$xml .=   '      <MailType>Online</MailType>';]]></add>
	</operation>	

    	<operation>
    		<search position="replace"><![CDATA[$xml .=	'		<Service>ALL</Service>';]]></search>
    		<add><![CDATA[$xml .=	'		<Service>ONLINE</Service>';]]></add>
    	</operation>
        <operation>
        	<search position="replace" offset="5"><![CDATA[$firstclasses = array (]]></search>
        	<add><![CDATA[$firstclasses = array (
						'First-Class Mail&#174; Parcel',
						'First-Class Mail&#174; Large Envelope',
						'First-Class Mail&#174; Letter',
						'First-Class Mail&#174; Postcards'
					);]]></add>
        </operation>
However, the rate remains the same and I got VQmod error below:

Code: Select all

---------- Date: 2014-12-21 20:06:58 ~ IP : 75.143.46.154 ----------
REQUEST URI : /index.php?route=module/shippingestimate/estimate
MOD DETAILS:
   modFile   : /home1/buyomart/public_html/vqmod/xml/Hogan_USPS_7_2013.xml
   id        : Fix USPS Rates for 7/28/2013 API Update
   version   : 1.4.1
   vqmver    : 1.0.9
   author    : JeffroDH

File Name    : catalog/model/shipping/usps.php(0)
VQModObject::applyMod - SEARCH NOT FOUND (ABORTING MOD): $xml .=   '      <MailType>All</MailType>';

----------------------------------------------------------------------

Newbie

Posts

Joined
Sat Feb 23, 2013 1:34 am

Post by JeffroDH » Mon Dec 22, 2014 10:49 pm

I'm sending you a PM. We had a conversation over PM back in July where I sent you the necessary code modifications. I only remembered after seeing the PMs.

Active Member

Posts

Joined
Thu Jul 11, 2013 8:29 am

Post by JeffroDH » Tue Feb 10, 2015 11:34 pm

JeffroDH wrote:This is the official support thread for the extension USPS API Update (Latest API Update). This VQMod simply addresses the changes for the latest API update. For OpenCart versions 1.4.x, the RateV4 API replaces the RateV3 API.

This extension is compatible with the latest version of the USPS APIs, which currently include the January 2015 update.

Things to include for a rapid resolution of your issue:
  • 1. A detailed description of the problem
    2. Your OpenCart error log
    3. Your VQMod error log
    4. OpenCart Version
Common Problems:
  • 1. Please make sure that your weight classes are set up appropriately! If the package weight is not accurate, you won't see the correct shipping methods. This issue most often affects First-Class Mail Parcel service and First-Class International Parcel Service.

    2. Read the USPS documentation to ensure you have the proper package type selected for your desired shipping options. Code is in place to help you when you have the wrong options selected, but it may not be foolproof.

    3. Check for other VQMods that write to the same files as this mod.
    • a. If the most expensive shipping option is listed first after this mod is installed, it's very likely that you have a custom template or theme that changes the code on the customer side. If you don't include your VQMod and system error logs in the post, there is no chance that I can help you.
    4. Check for extra whitespace in your file. This is particularly common with 1.4.x installs.
The retirement of the RateV3 API does not affect this mod, as it is based on the newer RateV4 API.

10/17/2014
Versions of this mod for OpenCart 1.4.x have been updated.

10/7/2014
version 1.4.1b addresses a bug that was introduced with the September 2014 update. As far as I can tell right now, the bug only affected users with OpenCart versions greater than or equal to 1.5.2

9/22/2014
Updated all versions to include September 2014 maintenance update.
Fixed bug that occurred in Mountain and Pacific Time zones between 10 and midnight if USPS routed the request to the Chicago server.

1/14/2014
Updated the code for compatibility with the January USPS API update. A delay in upgrading shouldn't break your USPS, the January update is pretty minor. More editions for earlier versions of OC will be forthcoming shortly.

Bug fixes, support, and minor API updates (as they come) will continue for this VQMod.

8/28/2013:
Updated the code with a modification that sorts all of the shipping methods by price in the shopping cart popup. Version 1.3.3 is live and happening!

8/14/2013:
Wrote a version for 1.4.7 that updates the same information. 1.4.7 version does not update the stock USPS module to Rate Request v4 or International Rate Request v2. Anticipate a release for OC 1.4.x with the updated rate requests.

8/3/2013:
Confirmed compatibility with 1.5.6.
Updated domestic shipping options to reflect all methods being returned by the API.

8/2/2013:
Fixed a bug in 1.1 that broke the mod. 1.2 is live and happy!

Active Member

Posts

Joined
Thu Jul 11, 2013 8:29 am

Post by Haywire » Mon Feb 16, 2015 6:49 am

OpenCart Version 1.5.6.4 (just upgraded from 1.5.5.1)
USPS Fix-1.4.1b (purchased and installed after the above upgrade)

Note: installed per directions. United States Postal Service was already installed, so I couldn't follow directions to the letter.

Issue: <sup>™</sup> continues to appear on printed Invoice. OK on screens. Using unmodified order_invoice.tpl. No other VQmods use any of the files that USPS Fix uses (disabled them to verify; no change in symptoms).

Log from vqmod/logs:
---------- Date: 2015-02-15 17:12:14 ~ IP : 72.49.132.129 ----------
REQUEST URI : /ocart/admin/index.php?route=extension/shipping&token=36b7430dbea3b7743de859c8a1c51dbf
MOD DETAILS:
modFile : /home/stajoc/public_html/ocart/vqmod/xml/Hogan_USPS_7_2013.xml
id : Fix USPS Rates for 7/28/2013 API Update
version : 1.4.1
vqmver : 1.0.9
author : JeffroDH

File Name : admin/language/english/shipping/usps.php(0)
VQModObject::applyMod - SEARCH NOT FOUND (ABORTING MOD): 'Express Mail';

----------------------------------------------------------------------


---------- Date: 2015-02-15 20:06:57 ~ IP : 72.49.132.129 ----------
REQUEST URI : /ocart/admin/index.php?route=extension/shipping&token=7c983f8c08938b3a85f32f980ce7c780
MOD DETAILS:
modFile : /home/abcdef/public_html/ocart/vqmod/xml/Hogan_USPS_7_2013.xml
id : Fix USPS Rates for 7/28/2013 API Update
version : 1.4.1
vqmver : 1.0.9
author : JeffroDH

File Name : admin/language/english/shipping/usps.php(0)
VQModObject::applyMod - SEARCH NOT FOUND (ABORTING MOD): 'Express Mail';

----------------------------------------------------------------------
Error log (since installation, no real orders, only one I placed and canceled before paying:

2015-02-15 21:16:23 - USPS DATA RECV: <?xml version="1.0" encoding="UTF-8"?>
<RateV4Response><Package ID="1"><ZipOrigination>45011</ZipOrigination><ZipDestination>45011</ZipDestination><Pounds>0</Pounds><Ounces>1.6</Ounces><Size>REGULAR</Size><Machinable>FALSE</Machinable><Zone>1</Zone><Postage CLASSID="3"><MailService>Priority Mail Express&#8482;</MailService><Rate>16.95</Rate><CommercialRate>13.09</CommercialRate><CommitmentDate>2015-02-18</CommitmentDate><CommitmentName>2-Day</CommitmentName></Postage><Postage CLASSID="2"><MailService>Priority Mail Express&#8482; Hold For Pickup</MailService><Rate>16.95</Rate><CommercialRate>13.09</CommercialRate><CommitmentDate>2015-02-18</CommitmentDate><CommitmentName>2-Day</CommitmentName></Postage><Postage CLASSID="55"><MailService>Priority Mail Express&#8482; Flat Rate Boxes</MailService><Rate>44.95</Rate><CommercialRate>44.95</CommercialRate><CommitmentDate>2015-02-18</CommitmentDate><CommitmentName>2-Day</CommitmentName></Postage><Postage CLASSID="56"><MailService>Priority Mail Express&#8482; Flat Rate Boxes Hold For Pickup</MailService><Rate>44.95</Rate><CommercialRate>44.95</CommercialRate><CommitmentDate>2015-02-18</CommitmentDate><CommitmentName>2-Day</CommitmentName></Postage><Postage CLASSID="13"><MailService>Priority Mail Express&#8482; Flat Rate Envelope</MailService><Rate>19.99</Rate><CommercialRate>18.11</CommercialRate><CommitmentDate>2015-02-18</CommitmentDate><CommitmentName>2-Day</CommitmentName></Postage><Postage CLASSID="27"><MailService>Priority Mail Express&#8482; Flat Rate Envelope Hold For Pickup</MailService><Rate>19.99</Rate><CommercialRate>18.11</CommercialRate><CommitmentDate>2015-02-18</CommitmentDate><CommitmentName>2-Day</CommitmentName></Postage><Postage CLASSID="30"><MailService>Priority Mail Express&#8482; Legal Flat Rate Envelope</MailService><Rate>19.99</Rate><CommercialRate>18.11</CommercialRate><CommitmentDate>2015-02-18</CommitmentDate><CommitmentName>2-Day</CommitmentName></Postage><Postage CLASSID="31"><MailService>Priority Mail Express&#8482; Legal Flat Rate Envelope Hold For Pickup</MailService><Rate>19.99</Rate><CommercialRate>18.11</CommercialRate><CommitmentDate>2015-02-18</CommitmentDate><CommitmentName>2-Day</CommitmentName></Postage><Postage CLASSID="62"><MailService>Priority Mail Express&#8482; Padded Flat Rate Envelope</MailService><Rate>19.99</Rate><CommercialRate>18.11</CommercialRate><CommitmentDate>2015-02-18</CommitmentDate><CommitmentName>2-Day</CommitmentName></Postage><Postage CLASSID="63"><MailService>Priority Mail Express&#8482; Padded Flat Rate Envelope Hold For Pickup</MailService><Rate>19.99</Rate><CommercialRate>18.11</CommercialRate><CommitmentDate>2015-02-18</CommitmentDate><CommitmentName>2-Day</CommitmentName></Postage><Postage CLASSID="1"><MailService>Priority Mail&#8482;</MailService><Rate>5.75</Rate><CommercialRate>5.05</CommercialRate><CommitmentDate>2015-02-18</CommitmentDate><CommitmentName>1-Day</CommitmentName></Postage><Postage CLASSID="33"><MailService>Priority Mail&#8482; Hold For Pickup</MailService><Rate>0.00</Rate><CommercialRate>5.05</CommercialRate><CommitmentDate>2015-02-18</CommitmentDate><CommitmentName>1-Day</CommitmentName></Postage><Postage CLASSID="22"><MailService>Priority Mail&#8482; Large Flat Rate Box</MailService><Rate>17.90</Rate><CommercialRate>15.80</CommercialRate><CommitmentDate>2015-02-18</CommitmentDate><CommitmentName>1-Day</CommitmentName></Postage><Postage CLASSID="34"><MailService>Priority Mail&#8482; Large Flat Rate Box Hold For Pickup</MailService><Rate>0.00</Rate><CommercialRate>15.80</CommercialRate><CommitmentDate>2015-02-18</CommitmentDate><CommitmentName>1-Day</CommitmentName></Postage><Postage CLASSID="17"><MailService>Priority Mail&#8482; Medium Flat Rate Box</MailService><Rate>12.65</Rate><CommercialRate>11.30</CommercialRate><CommitmentDate>2015-02-18</CommitmentDate><CommitmentName>1-Day</CommitmentName></Postage><Postage CLASSID="35"><MailService>Priority Mail&#8482; Medium Flat Rate Box Hold For Pickup</MailService><Rate>0.00</Rate><CommercialRate>11.30</CommercialRate><CommitmentDate>2015-02-18</CommitmentDate><CommitmentName>1-Day</CommitmentName></Postage><Postage CLASSID="28"><MailService>Priority Mail&#8482; Small Flat Rate Box</MailService><Rate>5.95</Rate><CommercialRate>5.25</CommercialRate><CommitmentDate>2015-02-18</CommitmentDate><CommitmentName>1-Day</CommitmentName></Postage><Postage CLASSID="36"><MailService>Priority Mail&#8482; Small Flat Rate Box Hold For Pickup</MailService><Rate>0.00</Rate><CommercialRate>5.25</CommercialRate><CommitmentDate>2015-02-18</CommitmentDate><CommitmentName>1-Day</CommitmentName></Postage><Postage CLASSID="47"><MailService>Priority Mail&#8482; Regional Rate Box A</MailService><Rate>0.00</Rate><CommercialRate>5.32</CommercialRate><CommitmentDate>2015-02-18</CommitmentDate><CommitmentName>1-Day</CommitmentName></Postage><Postage CLASSID="48"><MailService>Priority Mail&#8482; Regional Rate Box A Hold For Pickup</MailService><Rate>0.00</Rate><CommercialRate>5.32</CommercialRate><CommitmentDate>2015-02-18</CommitmentDate><CommitmentName>1-Day</CommitmentName></Postage><Postage CLASSID="49"><MailService>Priority Mail&#8482; Regional Rate Box B</MailService><Rate>0.00</Rate><CommercialRate>6.16</CommercialRate><CommitmentDate>2015-02-18</CommitmentDate><CommitmentName>1-Day</CommitmentName></Postage><Postage CLASSID="50"><MailService>Priority Mail&#8482; Regional Rate Box B Hold For Pickup</MailService><Rate>0.00</Rate><CommercialRate>6.16</CommercialRate><CommitmentDate>2015-02-18</CommitmentDate><CommitmentName>1-Day</CommitmentName></Postage><Postage CLASSID="58"><MailService>Priority Mail&#8482; Regional Rate Box C</MailService><Rate>0.00</Rate><CommercialRate>9.85</CommercialRate><CommitmentDate>2015-02-18</CommitmentDate><CommitmentName>1-Day</CommitmentName></Postage><Postage CLASSID="59"><MailService>Priority Mail&#8482; Regional Rate Box C Hold For Pickup</MailService><Rate>0.00</Rate><CommercialRate>9.85</CommercialRate><CommitmentDate>2015-02-18</CommitmentDate><CommitmentName>1-Day</CommitmentName></Postage><Postage CLASSID="16"><MailService>Priority Mail&#8482; Flat Rate Envelope</MailService><Rate>5.75</Rate><CommercialRate>5.05</CommercialRate><CommitmentDate>2015-02-18</CommitmentDate><CommitmentName>1-Day</CommitmentName></Postage><Postage CLASSID="37"><MailService>Priority Mail&#8482; Flat Rate Envelope Hold For Pickup</MailService><Rate>0.00</Rate><CommercialRate>5.05</CommercialRate><CommitmentDate>2015-02-18</CommitmentDate><CommitmentName>1-Day</CommitmentName></Postage><Postage CLASSID="44"><MailService>Priority Mail&#8482; Legal Flat Rate Envelope</MailService><Rate>5.90</Rate><CommercialRate>5.25</CommercialRate><CommitmentDate>2015-02-18</CommitmentDate><CommitmentName>1-Day</CommitmentName></Postage><Postage CLASSID="45"><MailService>Priority Mail&#8482; Legal Flat Rate Envelope Hold For Pickup</MailService><Rate>0.00</Rate><CommercialRate>5.25</CommercialRate><CommitmentDate>2015-02-18</CommitmentDate><CommitmentName>1-Day</CommitmentName></Postage><Postage CLASSID="29"><MailService>Priority Mail&#8482; Padded Flat Rate Envelope</MailService><Rate>6.10</Rate><CommercialRate>5.70</CommercialRate><CommitmentDate>2015-02-18</CommitmentDate><CommitmentName>1-Day</CommitmentName></Postage><Postage CLASSID="46"><MailService>Priority Mail&#8482; Padded Flat Rate Envelope Hold For Pickup</MailService><Rate>0.00</Rate><CommercialRate>5.70</CommercialRate><CommitmentDate>2015-02-18</CommitmentDate><CommitmentName>1-Day</CommitmentName></Postage><Postage CLASSID="38"><MailService>Priority Mail&#8482; Gift Card Flat Rate Envelope</MailService><Rate>5.75</Rate><CommercialRate>5.05</CommercialRate><CommitmentDate>2015-02-18</CommitmentDate><CommitmentName>1-Day</CommitmentName></Postage><Postage CLASSID="39"><MailService>Priority Mail&#8482; Gift Card Flat Rate Envelope Hold For Pickup</MailService><Rate>0.00</Rate><CommercialRate>5.05</CommercialRate><CommitmentDate>2015-02-18</CommitmentDate><CommitmentName>1-Day</CommitmentName></Postage><Postage CLASSID="42"><MailService>Priority Mail&#8482; Small Flat Rate Envelope</MailService><Rate>5.75</Rate><CommercialRate>5.05</CommercialRate><CommitmentDate>2015-02-18</CommitmentDate><CommitmentName>1-Day</CommitmentName></Postage><Postage CLASSID="43"><MailService>Priority Mail&#8482; Small Flat Rate Envelope Hold For Pickup</MailService><Rate>0.00</Rate><CommercialRate>5.05</CommercialRate><CommitmentDate>2015-02-18</CommitmentDate><CommitmentName>1-Day</CommitmentName></Postage><Postage CLASSID="40"><MailService>Priority Mail&#8482; Window Flat Rate Envelope</MailService><Rate>5.75</Rate><CommercialRate>5.05</CommercialRate><CommitmentDate>2015-02-18</CommitmentDate><CommitmentName>1-Day</CommitmentName></Postage><Postage CLASSID="41"><MailService>Priority Mail&#8482; Window Flat Rate Envelope Hold For Pickup</MailService><Rate>0.00</Rate><CommercialRate>5.05</CommercialRate><CommitmentDate>2015-02-18</CommitmentDate><CommitmentName>1-Day</CommitmentName></Postage><Postage CLASSID="0"><MailService>First-Class Mail&#174; Stamped Letter</MailService><Rate>0.70</Rate></Postage><Postage CLASSID="78"><MailService>First-Class Mail&#174; Metered Letter</MailService><Rate>0.69</Rate></Postage><Postage CLASSID="0"><MailService>First-Class Mail&#174; Parcel</MailService><Rate>2.32</Rate></Postage><Postage CLASSID="0"><MailService>First-Class Mail&#174; Postcards</MailService><Rate>0.34</Rate></Postage><Postage CLASSID="15"><MailService>First-Class Mail&#174; Large Postcards</MailService><Rate>0.70</Rate></Postage><Postage CLASSID="61"><MailService>First-Class&#8482; Package Service</MailService><Rate>0.00</Rate><CommercialRate>1.93</CommercialRate></Postage><Postage CLASSID="53"><MailService>First-Class&#8482; Package Service Hold For Pickup</MailService><Rate>0.00</Rate><CommercialRate>1.93</CommercialRate></Postage><Postage CLASSID="6"><MailService>Media Mail Parcel</MailService><Rate>2.69</Rate></Postage><Postage CLASSID="7"><MailService>Library Mail Parcel</MailService><Rate>2.56</Rate></Postage></Package></RateV4Response>

User avatar
Newbie

Posts

Joined
Tue Mar 13, 2012 5:16 pm

Post by JeffroDH » Mon Feb 16, 2015 9:44 am

Can you confirm that you downloaded the version for 1.5.6?

Active Member

Posts

Joined
Thu Jul 11, 2013 8:29 am

Post by Haywire » Mon Feb 16, 2015 9:56 am

Jeff, best I can provide is:

- Filename: Hogan_USPS_7_2013.xml

The first few lines of the file:

<id>Fix USPS Rates for 7/28/2013 API Update</id>
<version>1.4.1</version>
<vqmver>1.0.9</vqmver>
<author>JeffroDH</author>
<info>Update for changes through September 2014</info>

And I recall that for 1.5.6.4, the top choice in the list on the downloads page was what I have.

BTW, using VQmod 2.5.0, if that means anything.

Much thanks,

Haywire

User avatar
Newbie

Posts

Joined
Tue Mar 13, 2012 5:16 pm

Post by JeffroDH » Mon Feb 16, 2015 12:07 pm

@Haywire:

What I think is going on:

The extension isn't fully working on your site, and the <sup> tags were written to your database, and they're being propagated from there to your printed invoices. I'm going to PM you a beta version of the next release. See if that works for you. Delete your test order and create a new order after we get the extension going.

If you are still getting VQMod errors, let me know. If that's the case, then something has modified one of the files, as it's working perfectly on my stock 1.5.6.4 install.

Active Member

Posts

Joined
Thu Jul 11, 2013 8:29 am

Post by Haywire » Tue Feb 17, 2015 9:57 am

Jeff,

Looks like the fix in the beta version you sent me is working. So is the version I downloaded at purchase. I generated a new test order, and the <sup> tags are gone. Re-printing a past order (generated in 1.5.5.1 without your USPS fix) shows the <sup> tags. I'm pretty sure you nailed it with the <sup> tags being in the database...ain't gonna worry about them.

FWIW I reinstalled 1.5.6.4 and updated to the latest vqmod (2.5.1) before adding your beta version. Had some file permission issues, but got past those.

Thanks for your quick reply and support,

Haywire

User avatar
Newbie

Posts

Joined
Tue Mar 13, 2012 5:16 pm

Post by JeffroDH » Tue Feb 17, 2015 12:06 pm

Haywire wrote:Jeff,

Looks like the fix in the beta version you sent me is working. So is the version I downloaded at purchase. I generated a new test order, and the <sup> tags are gone. Re-printing a past order (generated in 1.5.5.1 without your USPS fix) shows the <sup> tags. I'm pretty sure you nailed it with the <sup> tags being in the database...ain't gonna worry about them.

FWIW I reinstalled 1.5.6.4 and updated to the latest vqmod (2.5.1) before adding your beta version. Had some file permission issues, but got past those.

Thanks for your quick reply and support,

Haywire
You're welcome. I would appreciate a rating on the extension page if you get a chance.

Active Member

Posts

Joined
Thu Jul 11, 2013 8:29 am

Post by CharmersVine99 » Sat Apr 04, 2015 1:52 am

Hello,
I just purchased this mod, and I cannot seem to get it to work.
Downloaded 2.0 version for my opencart 2.0.1.1, copied over to /vqmod/xml, installed USPS shipping, clicked edit, but it does not seem to be populated with the information. It only has a few (the default ones i think) shipping options. I am specifically looking for the regional boxes.

Any help would be great.
Thanks,
CharmersVine


Posts

Joined
Sat Apr 04, 2015 1:50 am

Post by JeffroDH » Sun Apr 05, 2015 10:06 am

To be any help at all, I need your store error logs and VQMOD error logs.

Are you certain VQMOD is installed properly?

Active Member

Posts

Joined
Thu Jul 11, 2013 8:29 am

Post by CharmersVine99 » Sun Apr 05, 2015 10:47 am

Going to [domain].com/vqmod/install yields: "VQMOD ALREADY INSTALLED!"

Installed vqmod via these instructions:
How to install using Autoinstaller
Download the latest version that has "opencart" in the title from
http://code.google.com/p/vqmod
Using FTP, upload the "vqmod" folder from the zip to the root of your opencart store.
Be sure the vqmod folder and the vqmod/vqcache folders are writable (either 755 or 777).
Also be sure index.php and admin/index.php are writable.
If not sure which you need, first try 755.
If you get errors about permissions, then try 777.
Goto http://www.yoursite.com/vqmod/install
You should get a success message. If not, check permissions above and try again
Load your store homepage and verify it works.
Using FTP, verify that there are new "vq" files in the "vqmod/vqcache" folder.
If yes, then you are ready to start downloading or creating vQmod scripts, otherwise ask for assistance.
There are no error logs or any logs whatsoever in /vqmod/logs.

Error log from /system/logs/error is just this repeated over and over again:
2015-04-05 2:11:33 - USPS DATA SENT: API=RateV4&XML=<RateV4Request USERID="[userid omitted]"> <Package ID="1"> <Service>ONLINE</Service> <ZipOrigination>10583</ZipOrigination> <ZipDestination>10583</ZipDestination> <Pounds>0</Pounds> <Ounces>1.6</Ounces> <Container>VARIABLE</Container> <Size>REGULAR</Size> <Width>8</Width> <Length>11</Length> <Height>5</Height> <Girth>37</Girth> <Machinable>false</Machinable> <ShipDate>04-Apr-2015</ShipDate> </Package></RateV4Request>
2015-04-05 2:11:33 - USPS DATA RECV: <?xml version="1.0" encoding="UTF-8"?>
<RateV4Response><Package ID="1"><ZipOrigination>10583</ZipOrigination><ZipDestination>10583</ZipDestination><Pounds>0</Pounds><Ounces>1.6</Ounces><Size>REGULAR</Size><Machinable>FALSE</Machinable><Zone>1</Zone><Postage CLASSID="3"><MailService>Priority Mail Express&#8482;</MailService><Rate>16.95</Rate><CommercialRate>13.09</CommercialRate><CommitmentDate>2015-04-07</CommitmentDate><CommitmentName>2-Day</CommitmentName></Postage><Postage CLASSID="2"><MailService>Priority Mail Express&#8482; Hold For Pickup</MailService><Rate>16.95</Rate><CommercialRate>13.09</CommercialRate><CommitmentDate>2015-04-07</CommitmentDate><CommitmentName>2-Day</CommitmentName></Postage><Postage CLASSID="55"><MailService>Priority Mail Express&#8482; Flat Rate Boxes</MailService><Rate>44.95</Rate><CommercialRate>44.95</CommercialRate><CommitmentDate>2015-04-07</CommitmentDate><CommitmentName>2-Day</CommitmentName></Postage><Postage CLASSID="56"><MailService>Priority Mail Express&#8482; Flat Rate Boxes Hold For Pickup</MailService><Rate>44.95</Rate><CommercialRate>44.95</CommercialRate><CommitmentDate>2015-04-07</CommitmentDate><CommitmentName>2-Day</CommitmentName></Postage><Postage CLASSID="13"><MailService>Priority Mail Express&#8482; Flat Rate Envelope</MailService><Rate>19.99</Rate><CommercialRate>18.11</CommercialRate><CommitmentDate>2015-04-07</CommitmentDate><CommitmentName>2-Day</CommitmentName></Postage><Postage CLASSID="27"><MailService>Priority Mail Express&#8482; Flat Rate Envelope Hold For Pickup</MailService><Rate>19.99</Rate><CommercialRate>18.11</CommercialRate><CommitmentDate>2015-04-07</CommitmentDate><CommitmentName>2-Day</CommitmentName></Postage><Postage CLASSID="30"><MailService>Priority Mail Express&#8482; Legal Flat Rate Envelope</MailService><Rate>19.99</Rate><CommercialRate>18.11</CommercialRate><CommitmentDate>2015-04-07</CommitmentDate><CommitmentName>2-Day</CommitmentName></Postage><Postage CLASSID="31"><MailService>Priority Mail Express&#8482; Legal Flat Rate Envelope Hold For Pickup</MailService><Rate>19.99</Rate><CommercialRate>18.11</CommercialRate><CommitmentDate>2015-04-07</CommitmentDate><CommitmentName>2-Day</CommitmentName></Postage><Postage CLASSID="62"><MailService>Priority Mail Express&#8482; Padded Flat Rate Envelope</MailService><Rate>19.99</Rate><CommercialRate>18.11</CommercialRate><CommitmentDate>2015-04-07</CommitmentDate><CommitmentName>2-Day</CommitmentName></Postage><Postage CLASSID="63"><MailService>Priority Mail Express&#8482; Padded Flat Rate Envelope Hold For Pickup</MailService><Rate>19.99</Rate><CommercialRate>18.11</CommercialRate><CommitmentDate>2015-04-07</CommitmentDate><CommitmentName>2-Day</CommitmentName></Postage><Postage CLASSID="1"><MailService>Priority Mail&#8482;</MailService><Rate>5.75</Rate><CommercialRate>5.05</CommercialRate><CommitmentDate>2015-04-07</CommitmentDate><CommitmentName>1-Day</CommitmentName></Postage><Postage CLASSID="33"><MailService>Priority Mail&#8482; Hold For Pickup</MailService><Rate>0.00</Rate><CommercialRate>5.05</CommercialRate><CommitmentDate>2015-04-07</CommitmentDate><CommitmentName>1-Day</CommitmentName></Postage><Postage CLASSID="22"><MailService>Priority Mail&#8482; Large Flat Rate Box</MailService><Rate>17.90</Rate><CommercialRate>15.80</CommercialRate><CommitmentDate>2015-04-07</CommitmentDate><CommitmentName>1-Day</CommitmentName></Postage><Postage CLASSID="34"><MailService>Priority Mail&#8482; Large Flat Rate Box Hold For Pickup</MailService><Rate>0.00</Rate><CommercialRate>15.80</CommercialRate><CommitmentDate>2015-04-07</CommitmentDate><CommitmentName>1-Day</CommitmentName></Postage><Postage CLASSID="17"><MailService>Priority Mail&#8482; Medium Flat Rate Box</MailService><Rate>12.65</Rate><CommercialRate>11.30</CommercialRate><CommitmentDate>2015-04-07</CommitmentDate><CommitmentName>1-Day</CommitmentName></Postage><Postage CLASSID="35"><MailService>Priority Mail&#8482; Medium Flat Rate Box Hold For Pickup</MailService><Rate>0.00</Rate><CommercialRate>11.30</CommercialRate><CommitmentDate>2015-04-07</CommitmentDate><CommitmentName>1-Day</CommitmentName></Postage><Postage CLASSID="28"><MailService>Priority Mail&#8482; Small Flat Rate Box</MailService><Rate>5.95</Rate><CommercialRate>5.25</CommercialRate><CommitmentDate>2015-04-07</CommitmentDate><CommitmentName>1-Day</CommitmentName></Postage><Postage CLASSID="36"><MailService>Priority Mail&#8482; Small Flat Rate Box Hold For Pickup</MailService><Rate>0.00</Rate><CommercialRate>5.25</CommercialRate><CommitmentDate>2015-04-07</CommitmentDate><CommitmentName>1-Day</CommitmentName></Postage><Postage CLASSID="47"><MailService>Priority Mail&#8482; Regional Rate Box A</MailService><Rate>0.00</Rate><CommercialRate>5.32</CommercialRate><CommitmentDate>2015-04-07</CommitmentDate><CommitmentName>1-Day</CommitmentName></Postage><Postage CLASSID="48"><MailService>Priority Mail&#8482; Regional Rate Box A Hold For Pickup</MailService><Rate>0.00</Rate><CommercialRate>5.32</CommercialRate><CommitmentDate>2015-04-07</CommitmentDate><CommitmentName>1-Day</CommitmentName></Postage><Postage CLASSID="49"><MailService>Priority Mail&#8482; Regional Rate Box B</MailService><Rate>0.00</Rate><CommercialRate>6.16</CommercialRate><CommitmentDate>2015-04-07</CommitmentDate><CommitmentName>1-Day</CommitmentName></Postage><Postage CLASSID="50"><MailService>Priority Mail&#8482; Regional Rate Box B Hold For Pickup</MailService><Rate>0.00</Rate><CommercialRate>6.16</CommercialRate><CommitmentDate>2015-04-07</CommitmentDate><CommitmentName>1-Day</CommitmentName></Postage><Postage CLASSID="58"><MailService>Priority Mail&#8482; Regional Rate Box C</MailService><Rate>0.00</Rate><CommercialRate>9.85</CommercialRate><CommitmentDate>2015-04-07</CommitmentDate><CommitmentName>1-Day</CommitmentName></Postage><Postage CLASSID="59"><MailService>Priority Mail&#8482; Regional Rate Box C Hold For Pickup</MailService><Rate>0.00</Rate><CommercialRate>9.85</CommercialRate><CommitmentDate>2015-04-07</CommitmentDate><CommitmentName>1-Day</CommitmentName></Postage><Postage CLASSID="16"><MailService>Priority Mail&#8482; Flat Rate Envelope</MailService><Rate>5.75</Rate><CommercialRate>5.05</CommercialRate><CommitmentDate>2015-04-07</CommitmentDate><CommitmentName>1-Day</CommitmentName></Postage><Postage CLASSID="37"><MailService>Priority Mail&#8482; Flat Rate Envelope Hold For Pickup</MailService><Rate>0.00</Rate><CommercialRate>5.05</CommercialRate><CommitmentDate>2015-04-07</CommitmentDate><CommitmentName>1-Day</CommitmentName></Postage><Postage CLASSID="44"><MailService>Priority Mail&#8482; Legal Flat Rate Envelope</MailService><Rate>5.90</Rate><CommercialRate>5.25</CommercialRate><CommitmentDate>2015-04-07</CommitmentDate><CommitmentName>1-Day</CommitmentName></Postage><Postage CLASSID="45"><MailService>Priority Mail&#8482; Legal Flat Rate Envelope Hold For Pickup</MailService><Rate>0.00</Rate><CommercialRate>5.25</CommercialRate><CommitmentDate>2015-04-07</CommitmentDate><CommitmentName>1-Day</CommitmentName></Postage><Postage CLASSID="29"><MailService>Priority Mail&#8482; Padded Flat Rate Envelope</MailService><Rate>6.10</Rate><CommercialRate>5.70</CommercialRate><CommitmentDate>2015-04-07</CommitmentDate><CommitmentName>1-Day</CommitmentName></Postage><Postage CLASSID="46"><MailService>Priority Mail&#8482; Padded Flat Rate Envelope Hold For Pickup</MailService><Rate>0.00</Rate><CommercialRate>5.70</CommercialRate><CommitmentDate>2015-04-07</CommitmentDate><CommitmentName>1-Day</CommitmentName></Postage><Postage CLASSID="38"><MailService>Priority Mail&#8482; Gift Card Flat Rate Envelope</MailService><Rate>5.75</Rate><CommercialRate>5.05</CommercialRate><CommitmentDate>2015-04-07</CommitmentDate><CommitmentName>1-Day</CommitmentName></Postage><Postage CLASSID="39"><MailService>Priority Mail&#8482; Gift Card Flat Rate Envelope Hold For Pickup</MailService><Rate>0.00</Rate><CommercialRate>5.05</CommercialRate><CommitmentDate>2015-04-07</CommitmentDate><CommitmentName>1-Day</CommitmentName></Postage><Postage CLASSID="42"><MailService>Priority Mail&#8482; Small Flat Rate Envelope</MailService><Rate>5.75</Rate><CommercialRate>5.05</CommercialRate><CommitmentDate>2015-04-07</CommitmentDate><CommitmentName>1-Day</CommitmentName></Postage><Postage CLASSID="43"><MailService>Priority Mail&#8482; Small Flat Rate Envelope Hold For Pickup</MailService><Rate>0.00</Rate><CommercialRate>5.05</CommercialRate><CommitmentDate>2015-04-07</CommitmentDate><CommitmentName>1-Day</CommitmentName></Postage><Postage CLASSID="40"><MailService>Priority Mail&#8482; Window Flat Rate Envelope</MailService><Rate>5.75</Rate><CommercialRate>5.05</CommercialRate><CommitmentDate>2015-04-07</CommitmentDate><CommitmentName>1-Day</CommitmentName></Postage><Postage CLASSID="41"><MailService>Priority Mail&#8482; Window Flat Rate Envelope Hold For Pickup</MailService><Rate>0.00</Rate><CommercialRate>5.05</CommercialRate><CommitmentDate>2015-04-07</CommitmentDate><CommitmentName>1-Day</CommitmentName></Postage><Postage CLASSID="0"><MailService>First-Class Mail&#174; Stamped Letter</MailService><Rate>0.70</Rate></Postage><Postage CLASSID="78"><MailService>First-Class Mail&#174; Metered Letter</MailService><Rate>0.69</Rate></Postage><Postage CLASSID="0"><MailService>First-Class Mail&#174; Parcel</MailService><Rate>2.32</Rate></Postage><Postage CLASSID="0"><MailService>First-Class Mail&#174; Postcards</MailService><Rate>0.34</Rate></Postage><Postage CLASSID="15"><MailService>First-Class Mail&#174; Large Postcards</MailService><Rate>0.70</Rate></Postage><Postage CLASSID="61"><MailService>First-Class&#8482; Package Service</MailService><Rate>0.00</Rate><CommercialRate>1.93</CommercialRate></Postage><Postage CLASSID="53"><MailService>First-Class&#8482; Package Service Hold For Pickup</MailService><Rate>0.00</Rate><CommercialRate>1.93</CommercialRate></Postage><Postage CLASSID="6"><MailService>Media Mail Parcel</MailService><Rate>2.69</Rate></Postage><Postage CLASSID="7"><MailService>Library Mail Parcel</MailService><Rate>2.56</Rate></Postage></Package></RateV4Response>


Posts

Joined
Sat Apr 04, 2015 1:50 am

Post by JeffroDH » Mon Apr 06, 2015 12:45 am

It looks like the mod is working, as its pulling the rates for all the additional methods.
To clarify, are the additional options not appearing in the admin panel?

Active Member

Posts

Joined
Thu Jul 11, 2013 8:29 am
Who is online

Users browsing this forum: No registered users and 79 guests