Results 1 to 10 of 462

Threaded View

  1. #13
    Join Date
    Apr 2007
    Location
    Ontario, Canada
    Posts
    1,731
    Plugin Contributions
    27

    Idea or Suggestion Canada Post special character error fix #2

    If this...:

    // $twi_cleanPname = preg_replace('/&#0*39;|\'/', '', $twi_cleanPname); // clean out apostrophe's

    is replaced with this:

    // $twi_cleanPname = preg_replace('/&#0*39;|\'/', '', $twi_cleanPname); // clean out apostrophe's
    $twi_cleanPname = preg_replace('/[^A-Za-z0-9- ]/', '', $twi_cleanPname); // Remove any character that isn't A-Z, a-z, 0-9 including hyphen but not a whitespace

    and it works... I could use a coffee ;)

    Last edited by twitchtoo; 5 Feb 2020 at 05:27 PM.
    Twitch.
    https://www.twitchtoo.com Do you work for free? Please donate.
    Twitch Base8 - Obsidian - This, is what's new.

 

 

Similar Threads

  1. Canada Post Module (w/Beanstream payment module)
    By sgt_slaughter in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 15 Sep 2009, 07:48 PM

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