Weird...the fix isn't working for me. I've double checked my modifications to code and it appears correct. I'm still getting an error message, however, and no First Class Mail option. I'm using opencart v.1.5.6.
v.3.0.2.0
-------------
also v.1.5.6
with vqmod 2.5.1
I did do it by hand, and just reinstalled a backup (from the OC/.zip/upload/tree) to catalog/model/shipping/usps.php.
I'm also trying to work with the VQMod - USPS <sup> Fix Extension...that's supposed to be placed in siteroot/VQMod/xml, correct?
I'm also trying to work with the VQMod - USPS <sup> Fix Extension...that's supposed to be placed in siteroot/VQMod/xml, correct?
v.3.0.2.0
-------------
also v.1.5.6
with vqmod 2.5.1
Okay, I've got the VQMod - USPS <sup> Fix Extension installed, but for some reason I don't understand yet, my usps.php file keeps being aborted.
I copied then edited the code as per the instructions in this thread, to the usps.php file, using Notepad+ +
Then I uploaded and overwrote the original file in catalog/model/shipping/usps.php
File Name: catalog/model/shipping/usps.php(0)
VQModObject::applyMod - SEARCH NOT FOUND (ABORTING MOD): ®<
I copied then edited the code as per the instructions in this thread, to the usps.php file, using Notepad+ +
Then I uploaded and overwrote the original file in catalog/model/shipping/usps.php
File Name: catalog/model/shipping/usps.php(0)
VQModObject::applyMod - SEARCH NOT FOUND (ABORTING MOD): ®<
v.3.0.2.0
-------------
also v.1.5.6
with vqmod 2.5.1
I copied the usps.php file before editing it in Notepad+ +. I also have a copy of the original in my downloaded copy of OC.
I've tried a number of things now, a number of times, such as editing the .php file directly via the file manager at my host site, editing in Notepad+ + offline then uploading, copying and pasting the two lines of changed code from this thread into the .php file via Notepad+ +, etc.
It appears only two lines of code have to be changed, correct?
In the original usps.php file these lines
$result = str_replace('<sup>&reg;</sup>', '', $result);
$result = str_replace('<sup>&trade;</sup>', '', $result);
are replaced with these two lines...
$result = str_replace('<sup>®</sup>', '', $result);
$result = str_replace('<sup>™</sup>', '', $result);
The difference I am seeing in the first line is that
amp;reg;
is replaced with
#174;
And in the second line
amp;trade;
is replaced with
#8482;
I've tried a number of things now, a number of times, such as editing the .php file directly via the file manager at my host site, editing in Notepad+ + offline then uploading, copying and pasting the two lines of changed code from this thread into the .php file via Notepad+ +, etc.
It appears only two lines of code have to be changed, correct?
In the original usps.php file these lines
$result = str_replace('<sup>&reg;</sup>', '', $result);
$result = str_replace('<sup>&trade;</sup>', '', $result);
are replaced with these two lines...
$result = str_replace('<sup>®</sup>', '', $result);
$result = str_replace('<sup>™</sup>', '', $result);
The difference I am seeing in the first line is that
amp;reg;
is replaced with
#174;
And in the second line
amp;trade;
is replaced with
#8482;
v.3.0.2.0
-------------
also v.1.5.6
with vqmod 2.5.1
644. Directories 755, files 644, nothing 777 ("group" 2nd and "world" 3rd 7s are extreme security risks (read/write/execute), modern servers and modern code do not need 777 for publically viewale firing of files). Use a pure ascii text editor, so that NO spurious code imparts to file. There are several, crimson editor alike several others highlights code differently for different sorts of syntax (html, etc.).
I thought the usps.php file needed to be 644, which it is. I've now tried the crimson editor too as a pure ascii text editor. Am still getting the same error message.
I noticed the weight class I has used in the shipping extensions (eg kilos/grams/etc) did not match the weight class set in my store setting (systems>settings>your store>local tab) so I made them match. This didn't affect it either.
My code above does look correct though, doesn't it???...
I noticed the weight class I has used in the shipping extensions (eg kilos/grams/etc) did not match the weight class set in my store setting (systems>settings>your store>local tab) so I made them match. This didn't affect it either.
My code above does look correct though, doesn't it???...
v.3.0.2.0
-------------
also v.1.5.6
with vqmod 2.5.1
The weight class was the culprit. Beside making the weight class match in the shipping extension and store setting, it also has to match in every product description. The usps shipping extension only allows one choice: Pound.
Therefore, the weight class in all three categories (shipping extension, store setting, product description) must be set to pound. I hope this clarifies and helps anyone else who runs into this hurdle.
Most of the items I'll be shipping weigh between 3 to 7 ounces, which means I have to translate all my products' weights into fractions of a pound. For example, 3 ounces = .1875 lb.
I'm now able to use usps first class parcel option for shipping. Thanks so much for the help!...
Therefore, the weight class in all three categories (shipping extension, store setting, product description) must be set to pound. I hope this clarifies and helps anyone else who runs into this hurdle.
Most of the items I'll be shipping weigh between 3 to 7 ounces, which means I have to translate all my products' weights into fractions of a pound. For example, 3 ounces = .1875 lb.
I'm now able to use usps first class parcel option for shipping. Thanks so much for the help!...
v.3.0.2.0
-------------
also v.1.5.6
with vqmod 2.5.1
I have applied the fixes in this post to my files and have removed the <sup> issues. "First-Class Mail Parcel" shows up as an option for domestic mail but when I attempt to export Internationally, "First Class Mail International Parcels" does not appear as a choice. Only the Priority Mail options. I'm noticing that the Post Office has renamed the service again. On their website I can only find "First Class Package International Service" rather than "First Class Mail Parcel." If any one has had this issue, I could really use a hand. Thanks!!!
I think the USPS is doing some of these things intentionally, to force people to use certain services. You can still get the other services IF you go to your local p.o. and deliver in person. New postal rates go into effect in about one week, so the USPS OC shipping module may need to be modified...again. I think it's wiser to wait at this point, to see if the module will require modification to the code.
v.3.0.2.0
-------------
also v.1.5.6
with vqmod 2.5.1
Have the files for 1.5.6 updated to fix these problems?
We use first class international shipping and our sales have now been Zero since this has happened..
The problem is in the version of opencart, we have older versions that show first class international and no <sup> on the shipping.
We use first class international shipping and our sales have now been Zero since this has happened..
The problem is in the version of opencart, we have older versions that show first class international and no <sup> on the shipping.
The information you're looking for is buried within their API documentation. They've updated the names of some of the services and tweaked some of the parameters as well. If your shop has been properly updated for the July 2013 API Update, the changes for the Jan. 2014 update will be minimal.ninjatrack wrote:I have applied the fixes in this post to my files and have removed the <sup> issues. "First-Class Mail Parcel" shows up as an option for domestic mail but when I attempt to export Internationally, "First Class Mail International Parcels" does not appear as a choice. Only the Priority Mail options. I'm noticing that the Post Office has renamed the service again. On their website I can only find "First Class Package International Service" rather than "First Class Mail Parcel." If any one has had this issue, I could really use a hand. Thanks!!!
Shameless plug: A VQMod extension I wrote that handles the entire process. Tested very thoroughly with stock OpenCart, custom templates may need a bit of tweaking. http://www.opencart.com/index.php?route ... n_id=13043
It has been updated to support the Jan. 2014 update as well, despite the title.
Thanks for all the replies. JeffroDH....I'm going to purchase your VQMod extenstion. Thanks for the advice.
Who is online
Users browsing this forum: No registered users and 28 guests