Results 1 to 10 of 470

Hybrid View

  1. #1
    Join Date
    Oct 2013
    Location
    Canada
    Posts
    30
    Plugin Contributions
    0

    Default Re: Yes! Set it up by weight

    The sell online server at Canada Post is offline again so our plugin cannot get prices. Does anyone have a working zencart site using the REST or SOAP system so they can calculate Canada Post shipping?

  2. #2
    Join Date
    Oct 2015
    Posts
    16
    Plugin Contributions
    0

    Default Re: Yes! Set it up by weight

    Quote Originally Posted by robertluer View Post
    The sell online server at Canada Post is offline again so our plugin cannot get prices...
    Was just on phone with support, with any luck a ticket was actually issued and they are looking into it... Fingers crossed that it's back up today!

  3. #3
    Join Date
    Apr 2007
    Location
    Ontario, Canada
    Posts
    1,732
    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.
    June 7.2026 - NOW AVAILABLE - Twitch Base8 - Obsidian

  4. #4
    Join Date
    Jul 2013
    Location
    Toronto
    Posts
    7
    Plugin Contributions
    0

    Default Re: Canada Post special character error fix #2

    Quote Originally Posted by twitchtoo View Post
    If this...:

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

    is replaced with this:

    // $twi_cleanPname = preg_replace('/�*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 ;)

    Thanks ! Works like a charm now!

    Donated to your coffee fund!

 

 

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

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