Forums / Bug Reports / [Not a Bug] USPS ® ™ characters

[Not a Bug] USPS ® ™ characters

Locked

Views: 1,243

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
19 Sep 2011, 11:02 PM
#1
numinix avatar

numinix

Totally Zenned

Join Date:
Apr 2007
Location:
Vancouver, Canada
Posts:
1,567
Plugin Contributions:
58

[Not a Bug] USPS ® ™ characters

In January, 2011, you released a new version which takes into account the new requirements for the ® and ™ characters required to be displayed for each shipping method.

The update also adds the ® and ™ characters into the id attribute of the radio button and causes it to not be able to show as selected if you come back to the page.

Although not the ideal solution, you need something like this:

          // fix new trademark and reg
          $type = str_replace('&lt;sup&gt;&amp;reg;&lt;/sup&gt;', '<sup>®</sup>', $type);
          $type = str_replace('&lt;sup&gt;&amp;trade;&lt;/sup&gt;', '<sup>™</sup>', $type);
          $title = ((isset($this->types[$type])) ? $this->types[$type] : $type);
          // get rid of it completely for use in the XHTML
          $type = str_replace('<sup>®</sup>', '', $type); 
          $type = str_replace('<sup>™</sup>', '', $type);
19 Sep 2011, 11:08 PM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: [Not a Bug] USPS &reg; &trade; characters

Could you explain a little slower where you are having a problem with the USPS January 2, 2011 C version with more detail on how to reproduce the problem you are experiencing? :unsure:

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

4 Oct 2011, 6:25 PM
#3
numinix avatar

numinix

Totally Zenned

Join Date:
Apr 2007
Location:
Vancouver, Canada
Posts:
1,567
Plugin Contributions:
58

Re: [Not a Bug] USPS &reg; &trade; characters

I'm sorry Ajeh, you can disregard this. You corrected the bug in another revision. Is there an official release coming soon? It's difficult to know which is the latest version when there are so many pages in that thread (http://www.zen-cart.com/forum/showthread.php?t=171314).

4 Oct 2011, 6:34 PM
#4
drbyte avatar

drbyte

Sensei

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

Re: [Not a Bug] USPS &reg; &trade; characters

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