Results 1 to 4 of 4
  1. #1
    Join Date
    Apr 2007
    Location
    Vancouver, Canada
    Posts
    1,547
    Plugin Contributions
    81

    Default [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:

    PHP Code:
              // fix new trademark and reg
              
    $type str_replace('&amp;lt;sup&amp;gt;&amp;amp;reg;&amp;lt;/sup&amp;gt;''<sup>&reg;</sup>'$type);
              
    $type str_replace('&amp;lt;sup&amp;gt;&amp;amp;trade;&amp;lt;/sup&amp;gt;''<sup>&trade;</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>&reg;</sup>'''$type); 
              
    $type str_replace('<sup>&trade;</sup>'''$type); 

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: 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?
    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: v1.5.5]
    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!

  3. #3
    Join Date
    Apr 2007
    Location
    Vancouver, Canada
    Posts
    1,547
    Plugin Contributions
    81

    Default Re: 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. #4
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: 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.

 

 

Similar Threads

  1. v151 USPS Module not producing estimates; UPS working; Production mode on & USPS verified
    By gingertea in forum Built-in Shipping and Payment Modules
    Replies: 15
    Last Post: 21 May 2013, 03:25 AM
  2. Using special characters with encoding like &trade; etc
    By jettrue in forum General Questions
    Replies: 14
    Last Post: 9 Aug 2011, 07:24 PM
  3. Problem with Text Editor & html chars (&reg;)
    By bumba000 in forum General Questions
    Replies: 3
    Last Post: 1 Oct 2010, 05:25 PM
  4. how to deal with <p> characters as &lt;p&gt; in datafeed w easy populate?
    By mk12 in forum All Other Contributions/Addons
    Replies: 5
    Last Post: 29 Sep 2009, 10:07 PM
  5. New Customer Reg. & Product Issue
    By crockwd in forum Managing Customers and Orders
    Replies: 5
    Last Post: 29 Sep 2009, 11:05 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR