Page 43 of 46 FirstFirst ... 334142434445 ... LastLast
Results 421 to 430 of 459
  1. #421
    Join Date
    Mar 2009
    Location
    Canada
    Posts
    6
    Plugin Contributions
    0

    Default Re: Canada Post module

    Quote Originally Posted by DrByte View Post
    I've posted an updated zip.
    Again, you can simply replace the /includes/modules/shipping/canadapost.php file found in the updated plugin zip at: https://www.zen-cart.com/downloads.php?do=file&id=4 (ie: you don't need to touch the other files)
    I thank you too Dr. Byte! It worked perfectly as soon as I loaded it and cleared the history
    I really appreciate your help with this and all the work from this team year after year to help us!

    Yeah ZENCART TEAM!

  2. #422
    Join Date
    Jan 2014
    Location
    Ontario, Canada
    Posts
    252
    Plugin Contributions
    3

    Default Re: Canada Post module

    Hi Folks,

    I have used this module in the past with success. I tried to create a new Sell Online profile for a client and got this response from Sell Online:

    Thank you for your interest in the Canada Post web services.

    The Sell Online program will be decommissioned in the near future, and as such we are no longer creating new accounts.

    The Web Developer program has been developed to replace and enhance the offerings of Sell Online.

    Not only will your customers be able to choose the speed and cost of delivery, but our APIs will simplify the entire purchase process for both you and your online shoppers. With web services, you can:

    - Automate the printing of shipping labels
    - Let customers track purchases directly from your website
    - Allow shoppers to print return labels from your site
    - Give shoppers the option to have purchases delivered to the Post Office of their choice- near home, the office or the cottage

    To get started with web services immediately visit:

    Join the Canada Post Developer Program now

    If you have questions about how our web services can help you sell more online, call us at 1-866-511-0546 or email us at sellonline AT canadapost DOT ca.

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

    Default Re: Canada Post module

    Bug found and fixed...

    includes/modules/shipping/canadapost.php

    replace line 165
    if ($this->lettermail_available && ($shipping_weight <= $this->lettermail_max_weight))

    with this:
    // Twitch bugfix - add lettermail switch control
    // orginal code if ($this->lettermail_available && ($shipping_weight <= $this->lettermail_max_weight))
    if (MODULE_SHIPPING_CANADAPOST_LETTERMAIL_STATUS == 'True' && ($shipping_weight <= $this->lettermail_max_weight))


    Enable Lettermail Rates switch will now function properly.


    Remember this uses the Max weight for Lettermail and the table rate settings correctly and needs 0's as placeholders or you will get non-numeric errors in your log folder.
    Twitch.
    https://www.twitchtoo.com Do you work for free? Please donate.
    Twitch Base7 with Wholesale PRO - 88 preinstalled plugins zero errors.

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

    bug Product Name Error - AA internal problem occurred

    Product Name Error

    'AA internal problem occurred. Please contact the Sell Online Customer service Desk at mailto:/[email protected]'


    Product names can not be passed to Canada Post with markup ' or , special characters.


    Quick fix - Method to drop apostrophe's.

    replace line 162
    $this->_addItem($products_array[$i]['quantity'], $products_array[$i]['final_price'], $products_array[$i]['weight'], $products_array[$i]['length'], $products_array[$i]['width'], $products_array[$i]['height'], $this->_xmlentities($products_array[$i]['model'] . "/" . $products_array[$i]['name']), $products_array[$i]['ready_to_ship'], $products_array[$i]['dim_type'], $products_array[$i]['weight_type']);


    with this:
    $twi_cleanPname = $products_array[$i]['name']; // Twitch fix Canada Post error 'AA internal problem occurred...'
    $twi_cleanPname = preg_replace('/&#0*39;|\'/', '', $twi_cleanPname); // clean out apostrophe's
    $this->_addItem($products_array[$i]['quantity'], $products_array[$i]['final_price'], $products_array[$i]['weight'], $products_array[$i]['length'], $products_array[$i]['width'], $products_array[$i]['height'], $this->_xmlentities($products_array[$i]['model'] . "/" . $twi_cleanPname /* $products_array[$i]['name'] */), $products_array[$i]['ready_to_ship'], $products_array[$i]['dim_type'], $products_array[$i]['weight_type']);


    The Canada Post server will now interpret the data correctly and pass the rate quotes properly again :)


    Redoc Note:
    One could amend the _xmlentities or create a new function to clean other characters out in future versions.
    Twitch.
    https://www.twitchtoo.com Do you work for free? Please donate.
    Twitch Base7 with Wholesale PRO - 88 preinstalled plugins zero errors.

  5. #425
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,612
    Plugin Contributions
    123

    Default Re: Product Name Error - AA internal problem occurred

    LOL I just came here to report the same bug @Twitch reported above. In my case, the name had the symbol for inches (") in it, and that broke Canada Post. Same temporary work around - just remove.
    That Software Guy. My Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

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

    Default Re: Product Name Error - AA internal problem occurred

    I have a number of products with & and % in them, is there a workaround for those?
    Tried playing with the code fix provided by Twitch but didn't work.
    Any help is appeciated.

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

    Default Re: Product Name Error - AA internal problem occurred

    Quote Originally Posted by Jugglez View Post
    I have a number of products with & and % in them, is there a workaround for those?
    Tried playing with the code fix provided by Twitch but didn't work.
    Any help is appeciated.
    Please post Zen, PHP and SQL versions from your Admin > Tools > Server Version Info.
    Twitch.
    https://www.twitchtoo.com Do you work for free? Please donate.
    Twitch Base7 with Wholesale PRO - 88 preinstalled plugins zero errors.

  8. #428
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,612
    Plugin Contributions
    123

    Default Re: Canada Post module

    His change didn't include %. You could just add that if you wish.

    $twi_cleanPname = preg_replace('/%&#0*39;|\'/', '', $twi_cleanPname);
    That Software Guy. My Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

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

    Default Re: Product Name Error - AA internal problem occurred

    Quote Originally Posted by twitchtoo View Post
    Please post Zen, PHP and SQL versions from your Admin > Tools > Server Version Info.
    MySQL 5.7.29
    PHP Version: 5.6.40
    Zencart 1.5.3 (patched a couple years ago)

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

    Default Re: Canada Post module

    Quote Originally Posted by swguy View Post
    His change didn't include %. You could just add that if you wish.

    $twi_cleanPname = preg_replace('/%�*39;|\'/', '', $twi_cleanPname);
    Thanks, tried this but didn't work with any product names with % in them.
    Getting the same CanadaPost error

 

 
Page 43 of 46 FirstFirst ... 334142434445 ... LastLast

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