As I have heard and read about, on the 28th of this month there are going to be some changes regarding USPS, is there anything that we have to change for that module on our sites so we can be sure that we are displaying the correct shipping options and prices? Or is that information pulled directly and will change on its own when those new services are implemented?
article to information about the changes on july 28th can be found here : https://liteblue.usps.gov/news/link/201 ... ws16s4.htm
Also
https://www.usps.com/business/web-tools ... elcome.htm
article to information about the changes on july 28th can be found here : https://liteblue.usps.gov/news/link/201 ... ws16s4.htm
Also
https://www.usps.com/business/web-tools ... elcome.htm
Just did a test order on my cart and it looks like the new names with superscript "TM" and "R" aren't playing completely nice with OpenCart:
United States Postal Service
Priority Mail 1-Day<sup>™</sup>
$11.10
Standard Post<sup>®</sup>
$11.10
Anyone have any thoughts on how to either edit the appropriate code to make the superscript code work, or just remove it completely? The <sup> is a little goofy looking.
Thanks!
Jason
United States Postal Service
Priority Mail 1-Day<sup>™</sup>
$11.10
Standard Post<sup>®</sup>
$11.10
Anyone have any thoughts on how to either edit the appropriate code to make the superscript code work, or just remove it completely? The <sup> is a little goofy looking.
Thanks!
Jason
I am seeing the same on new orders "Priority Mail 2-Day<sup>™</sup>" There should also be Priority 3 Day I think. Looks like a update is very much needed.
Just did some testing and found that First-Class Mail Parcel is not working.
I am running 1.5.4.1 OC
Just did some testing and found that First-Class Mail Parcel is not working.
I am running 1.5.4.1 OC
Fix done
In: catalog/model/shipping/usps.php
Find:
Replace with this:
I have tested this on 1.5.4.1 and it also fixes First Class Mail which was not come up.
Note Priority Mail is Now displayed as Priority Mail 1-Day, Priority 2-Day or Priority 3-Day
I have not tested it yet but if you what to add the symbols they add for trademark I think this would work
In: catalog/model/shipping/usps.php
Find:
Code: Select all
$result = str_replace('<sup>&reg;</sup>', '', $result);
$result = str_replace('<sup>&trade;</sup>', '', $result);
Code: Select all
$result = str_replace('<sup>®</sup>', '', $result);
$result = str_replace('<sup>™</sup>', '', $result);
Note Priority Mail is Now displayed as Priority Mail 1-Day, Priority 2-Day or Priority 3-Day
I have not tested it yet but if you what to add the symbols they add for trademark I think this would work
Code: Select all
$result = str_replace('<sup>®</sup>', '<sup>®</sup>', $result);
$result = str_replace('<sup>™</sup>', '<sup>™</sup>', $result);
I just tested the first fix with 1.5.5.1 and it works. Thank you!BionicBill wrote:Fix done
In: catalog/model/shipping/usps.php
Find:Replace with this:Code: Select all
$result = str_replace('<sup>&reg;</sup>', '', $result); $result = str_replace('<sup>&trade;</sup>', '', $result);
I have tested this on 1.5.4.1 and it also fixes First Class Mail which was not come up.Code: Select all
$result = str_replace('<sup>®</sup>', '', $result); $result = str_replace('<sup>™</sup>', '', $result);
Note Priority Mail is Now displayed as Priority Mail 1-Day, Priority 2-Day or Priority 3-Day
I have not tested it yet but if you what to add the symbols they add for trademark I think this would work
Also if doing the above I think you also need to replace the following codeCode: Select all
$result = str_replace('<sup>®</sup>', '<sup>®</sup>', $result); $result = str_replace('<sup>™</sup>', '<sup>™</sup>', $result);
Find:Replace with:Code: Select all
$firstclasses = array ( 'First-Class Mail Parcel', 'First-Class Mail Large Envelope', 'First-Class Mail Letter', 'First-Class Mail Postcards' );
Like I said I have not tested these changes to add the TM symbols.Code: Select all
$firstclasses = array ( 'First-Class Mail<sup>&174</sup> Parcel', 'First-Class Mail<sup>&174</sup> Large Envelope', 'First-Class Mail<sup>&174</sup> Letter', 'First-Class Mail<sup>&174</sup> Postcards' );
DL
This account is inactive. Look for us under the name 'EvolveWebHosting' and contact us under that username.
Thanks!
I have also updated the language file usps.php under admin/language/english/shipping/usps.php to update the new names for shipping services.
Should work for 1.5.X but backup before trying.
Should work for 1.5.X but backup before trying.
Attachments
There are only 3 lines in that file, but there are more than that in the file on my system.BionicBill wrote:I have also updated the language file usps.php under admin/language/english/shipping/usps.php to update the new names for shipping services.
Should work for 1.5.X but backup before trying.
I found my problem
Is correct. The code that was provided by Bill for that section doesn't work.
Code: Select all
$firstclasses = array (
'First-Class Mail Parcel',
'First-Class Mail Large Envelope',
'First-Class Mail Letter',
'First-Class Mail Postcards'
);
this seems to have fixed the <sup> issue but we offer two shipping options
Priority Mail Express 1-Day Flat Rate Envelope
Priority Mail 1-Day
Is there a way to change the names that are displayed so that it reads
Express Mail 1-2 Day
Priority Mail 2-3 Day
?
Priority Mail Express 1-Day Flat Rate Envelope
Priority Mail 1-Day
Is there a way to change the names that are displayed so that it reads
Express Mail 1-2 Day
Priority Mail 2-3 Day
?
try addingnealero wrote:this seems to have fixed the <sup> issue but we offer two shipping options
Priority Mail Express 1-Day Flat Rate Envelope
Priority Mail 1-Day
Is there a way to change the names that are displayed so that it reads
Express Mail 1-2 Day
Priority Mail 2-3 Day
?
$result = str_replace('Priority Mail Express 1-Day Flat Rate Envelope', 'Express Mail 1-2 Day ', $result);
$result = str_replace('Priority Mail 1-Day', 'Priority Mail 2-3 Day', $result);
Does anyone know if the fixes given above will work for older versions? Specifically, 1.4.9.6 in my case. I'm getting the same issues with the new changes the USPS made on the 28th.
Hey guys.
Not working on Version 1.4.9.3 or 1.5.1.1.
Thoughts?
Not working on Version 1.4.9.3 or 1.5.1.1.
Thoughts?
Regards,
Howard Baltus
WebAuthoring.com
TheTrickery.com
Who is online
Users browsing this forum: No registered users and 1 guest