Page 47 of 47 FirstFirst ... 37454647
Results 461 to 470 of 470
  1. #461
    Join Date
    Apr 2019
    Posts
    344
    Plugin Contributions
    0

    Default Re: Canada Post module

    Quote Originally Posted by WoundedPaw View Post
    Will there be a new version for v2.1.0 coming soon? Haven't tried it yet but I would like to incorporate this module for shipping from Canada to everywhere.
    https://www.zen-cart.com/downloads.p...id=4&styleid=2

    The latest version was released Jan 2024. It is said it is compatible with 2.0-alpha. You can probably try it and see if it still works with 2.1.0.

  2. #462
    Join Date
    Feb 2012
    Location
    Sherbrooke QC Canada
    Posts
    8
    Plugin Contributions
    0

    application error Re: Canada Post module

    Quote Originally Posted by njcyx View Post
    https://www.zen-cart.com/downloads.p...id=4&styleid=2

    The latest version was released Jan 2024. It is said it is compatible with 2.0-alpha. You can probably try it and see if it still works with 2.1.0.
    I have updated my website https://www.touskki.ca with Zen Cart 2.1.0. I rely solely on Canada Post for shipping so I grit my teeth and installed this suggested version. It "sort-of" works. Initially, it broke crashed the site completely. Then I noticed that just copying includes\modules\shipping\canadapost.php, my site did not crash and shipping rates were displayed in the shipping estimator. Yeah!

    Well, however, checking my error logs, I get the following errors every time I access the shipping estimator...

    [22-Mar-2025 12:15:35 America/Montreal] Request URI: /index.php?main_page=shopping_cart, IP address: 23.233.224.168, Language id 1
    #0 /home/tousk980/public_html/includes/modules/shipping/canadapost.php(228): zen_debug_error_handler()
    #1 /home/tousk980/public_html/includes/classes/shipping.php(257): canadapost->quote()
    #2 /home/tousk980/public_html/includes/modules/shipping_estimator.php(163): shipping->quote()
    #3 /home/tousk980/public_html/includes/templates/touskki/modalboxes/tpl_shipping_estimator.php(19): require('/home/tousk980/...')
    #4 /home/tousk980/public_html/includes/templates/touskki/templates/tpl_shopping_cart_default.php(213): require('/home/tousk980/...')
    #5 /home/tousk980/public_html/includes/templates/touskki/common/tpl_main_page.php(233): require('/home/tousk980/...')
    #6 /home/tousk980/public_html/index.php(94): require('/home/tousk980/...')
    --> PHP Warning: Undefined array key "ready_to_ship" in /home/tousk980/public_html/includes/modules/shipping/canadapost.php on line 228.

    [22-Mar-2025 12:15:35 America/Montreal] Request URI: /index.php?main_page=shopping_cart, IP address: 23.233.224.168, Language id 1
    #0 /home/tousk980/public_html/includes/modules/shipping/canadapost.php(229): zen_debug_error_handler()
    #1 /home/tousk980/public_html/includes/classes/shipping.php(257): canadapost->quote()
    #2 /home/tousk980/public_html/includes/modules/shipping_estimator.php(163): shipping->quote()
    #3 /home/tousk980/public_html/includes/templates/touskki/modalboxes/tpl_shipping_estimator.php(19): require('/home/tousk980/...')
    #4 /home/tousk980/public_html/includes/templates/touskki/templates/tpl_shopping_cart_default.php(213): require('/home/tousk980/...')
    #5 /home/tousk980/public_html/includes/templates/touskki/common/tpl_main_page.php(233): require('/home/tousk980/...')
    #6 /home/tousk980/public_html/index.php(94): require('/home/tousk980/...')
    --> PHP Warning: Undefined array key "dim_type" in /home/tousk980/public_html/includes/modules/shipping/canadapost.php on line 229.

    [22-Mar-2025 12:15:35 America/Montreal] Request URI: /index.php?main_page=shopping_cart, IP address: 23.233.224.168, Language id 1
    #0 /home/tousk980/public_html/includes/modules/shipping/canadapost.php(230): zen_debug_error_handler()
    #1 /home/tousk980/public_html/includes/classes/shipping.php(257): canadapost->quote()
    #2 /home/tousk980/public_html/includes/modules/shipping_estimator.php(163): shipping->quote()
    #3 /home/tousk980/public_html/includes/templates/touskki/modalboxes/tpl_shipping_estimator.php(19): require('/home/tousk980/...')
    #4 /home/tousk980/public_html/includes/templates/touskki/templates/tpl_shopping_cart_default.php(213): require('/home/tousk980/...')
    #5 /home/tousk980/public_html/includes/templates/touskki/common/tpl_main_page.php(233): require('/home/tousk980/...')
    #6 /home/tousk980/public_html/index.php(94): require('/home/tousk980/...')
    --> PHP Warning: Undefined array key "weight_type" in /home/tousk980/public_html/includes/modules/shipping/canadapost.php on line 230.

    I tried really hard to correct the problem myself, but this time I lack the skills.

    Please help me Dr. Byte!

  3. #463
    Join Date
    Feb 2012
    Location
    Sherbrooke QC Canada
    Posts
    8
    Plugin Contributions
    0

    Default Re: Canada Post module

    Hi everyone,

    I have recently upgraded my Zen Cart to v2.1.0. All went correctly. Then I installed the suggested module above as I require Canada Post as it is my only shipping option. The entire zen cart crashed and burned. Then I notices if you just all includes\modules\shipping\canadapost.php, customers do get rates in the shipping estimator. However, I do get these errors every time I access the shipping estimator:

    ---
    [22-Mar-2025 12:15:35 America/Montreal] Request URI: /index.php?main_page=shopping_cart, IP address: 23.233.224.168, Language id 1
    #0 /home/tousk980/public_html/includes/modules/shipping/canadapost.php(228): zen_debug_error_handler()
    #1 /home/tousk980/public_html/includes/classes/shipping.php(257): canadapost->quote()
    #2 /home/tousk980/public_html/includes/modules/shipping_estimator.php(163): shipping->quote()
    #3 /home/tousk980/public_html/includes/templates/touskki/modalboxes/tpl_shipping_estimator.php(19): require('/home/tousk980/...')
    #4 /home/tousk980/public_html/includes/templates/touskki/templates/tpl_shopping_cart_default.php(213): require('/home/tousk980/...')
    #5 /home/tousk980/public_html/includes/templates/touskki/common/tpl_main_page.php(233): require('/home/tousk980/...')
    #6 /home/tousk980/public_html/index.php(94): require('/home/tousk980/...')
    --> PHP Warning: Undefined array key "ready_to_ship" in /home/tousk980/public_html/includes/modules/shipping/canadapost.php on line 228.

    [22-Mar-2025 12:15:35 America/Montreal] Request URI: /index.php?main_page=shopping_cart, IP address: 23.233.224.168, Language id 1
    #0 /home/tousk980/public_html/includes/modules/shipping/canadapost.php(229): zen_debug_error_handler()
    #1 /home/tousk980/public_html/includes/classes/shipping.php(257): canadapost->quote()
    #2 /home/tousk980/public_html/includes/modules/shipping_estimator.php(163): shipping->quote()
    #3 /home/tousk980/public_html/includes/templates/touskki/modalboxes/tpl_shipping_estimator.php(19): require('/home/tousk980/...')
    #4 /home/tousk980/public_html/includes/templates/touskki/templates/tpl_shopping_cart_default.php(213): require('/home/tousk980/...')
    #5 /home/tousk980/public_html/includes/templates/touskki/common/tpl_main_page.php(233): require('/home/tousk980/...')
    #6 /home/tousk980/public_html/index.php(94): require('/home/tousk980/...')
    --> PHP Warning: Undefined array key "dim_type" in /home/tousk980/public_html/includes/modules/shipping/canadapost.php on line 229.

    [22-Mar-2025 12:15:35 America/Montreal] Request URI: /index.php?main_page=shopping_cart, IP address: 23.233.224.168, Language id 1
    #0 /home/tousk980/public_html/includes/modules/shipping/canadapost.php(230): zen_debug_error_handler()
    #1 /home/tousk980/public_html/includes/classes/shipping.php(257): canadapost->quote()
    #2 /home/tousk980/public_html/includes/modules/shipping_estimator.php(163): shipping->quote()
    #3 /home/tousk980/public_html/includes/templates/touskki/modalboxes/tpl_shipping_estimator.php(19): require('/home/tousk980/...')
    #4 /home/tousk980/public_html/includes/templates/touskki/templates/tpl_shopping_cart_default.php(213): require('/home/tousk980/...')
    #5 /home/tousk980/public_html/includes/templates/touskki/common/tpl_main_page.php(233): require('/home/tousk980/...')
    #6 /home/tousk980/public_html/index.php(94): require('/home/tousk980/...')
    --> PHP Warning: Undefined array key "weight_type" in /home/tousk980/public_html/includes/modules/shipping/canadapost.php on line 230.
    ---

    However I get rates from Canada Post (but unsure if they are correct). Please help!

    My Zen Cart: www.touskki.ca
    Last edited by ServicesinfoSL; 22 Mar 2025 at 09:41 PM. Reason: Errors

  4. #464
    Join Date
    Sep 2007
    Posts
    5
    Plugin Contributions
    0

    Default Re: Canada Post module

    The Canada Post Sell Online tool will be decommissioned by the end of September 2025. Does anyone have any plans to support the new Canada Post Developer Program for Zencart?

  5. #465
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: Canada Post module

    Quote Originally Posted by grizak View Post
    The Canada Post Sell Online tool will be decommissioned by the end of September 2025. Does anyone have any plans to support the new Canada Post Developer Program for Zencart?
    The old module let you configure your specific shipping box sizes in the CP website, and then when CP quoted prices it was based on those box sizes, fitting all the shipment items into that many boxes.
    Their new approach abandoned that feature, meaning it will need to rely on Zen Cart's max box weight for calculating how many boxes, regardless of dimensions. This will throw off the CP quoting a bit, because it might quote on too few or too many boxes, of wrong dimensions.

    This is what has always interfered with building an updated module for CP.

    Questions for you:
    - do you normally use only a certain CP-provided packaging for your shipments?
    - what regular box sizes do you normally use?
    - how often do you vary from a single box size?
    - how often do you use a bag instead of a box? (bags can be random sizes, which is harder to anticipate)
    - how often do you combine multiple items into a single package?
    - were there any pain-points to using the old CP module? (packaging, quoted prices, etc)

    These are just some questions that will help anticipate what's needed for a rebuild. I know they'll be specific to your own business, but the feedback helps.
    .

    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.

  6. #466
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: Canada Post module

    Quote Originally Posted by ServicesinfoSL View Post
    Hi everyone,

    I have recently upgraded my Zen Cart to v2.1.0. All went correctly. Then I installed the suggested module above as I require Canada Post as it is my only shipping option. The entire zen cart crashed and burned. Then I notices if you just all includes\modules\shipping\canadapost.php, customers do get rates in the shipping estimator. However, I do get these errors every time I access the shipping estimator:

    ---
    [22-Mar-2025 12:15:35 America/Montreal] Request URI: /index.php?main_page=shopping_cart, IP address: 23.233.224.168, Language id 1
    #0 /home/tousk980/public_html/includes/modules/shipping/canadapost.php(228): zen_debug_error_handler()
    #1 /home/tousk980/public_html/includes/classes/shipping.php(257): canadapost->quote()
    #2 /home/tousk980/public_html/includes/modules/shipping_estimator.php(163): shipping->quote()
    #3 /home/tousk980/public_html/includes/templates/touskki/modalboxes/tpl_shipping_estimator.php(19): require('/home/tousk980/...')
    #4 /home/tousk980/public_html/includes/templates/touskki/templates/tpl_shopping_cart_default.php(213): require('/home/tousk980/...')
    #5 /home/tousk980/public_html/includes/templates/touskki/common/tpl_main_page.php(233): require('/home/tousk980/...')
    #6 /home/tousk980/public_html/index.php(94): require('/home/tousk980/...')
    --> PHP Warning: Undefined array key "ready_to_ship" in /home/tousk980/public_html/includes/modules/shipping/canadapost.php on line 228.

    [22-Mar-2025 12:15:35 America/Montreal] Request URI: /index.php?main_page=shopping_cart, IP address: 23.233.224.168, Language id 1
    #0 /home/tousk980/public_html/includes/modules/shipping/canadapost.php(229): zen_debug_error_handler()
    #1 /home/tousk980/public_html/includes/classes/shipping.php(257): canadapost->quote()
    #2 /home/tousk980/public_html/includes/modules/shipping_estimator.php(163): shipping->quote()
    #3 /home/tousk980/public_html/includes/templates/touskki/modalboxes/tpl_shipping_estimator.php(19): require('/home/tousk980/...')
    #4 /home/tousk980/public_html/includes/templates/touskki/templates/tpl_shopping_cart_default.php(213): require('/home/tousk980/...')
    #5 /home/tousk980/public_html/includes/templates/touskki/common/tpl_main_page.php(233): require('/home/tousk980/...')
    #6 /home/tousk980/public_html/index.php(94): require('/home/tousk980/...')
    --> PHP Warning: Undefined array key "dim_type" in /home/tousk980/public_html/includes/modules/shipping/canadapost.php on line 229.

    [22-Mar-2025 12:15:35 America/Montreal] Request URI: /index.php?main_page=shopping_cart, IP address: 23.233.224.168, Language id 1
    #0 /home/tousk980/public_html/includes/modules/shipping/canadapost.php(230): zen_debug_error_handler()
    #1 /home/tousk980/public_html/includes/classes/shipping.php(257): canadapost->quote()
    #2 /home/tousk980/public_html/includes/modules/shipping_estimator.php(163): shipping->quote()
    #3 /home/tousk980/public_html/includes/templates/touskki/modalboxes/tpl_shipping_estimator.php(19): require('/home/tousk980/...')
    #4 /home/tousk980/public_html/includes/templates/touskki/templates/tpl_shopping_cart_default.php(213): require('/home/tousk980/...')
    #5 /home/tousk980/public_html/includes/templates/touskki/common/tpl_main_page.php(233): require('/home/tousk980/...')
    #6 /home/tousk980/public_html/index.php(94): require('/home/tousk980/...')
    --> PHP Warning: Undefined array key "weight_type" in /home/tousk980/public_html/includes/modules/shipping/canadapost.php on line 230.
    ---

    However I get rates from Canada Post (but unsure if they are correct). Please help!
    You could try changing lines 228-230 of canadapost.php to the following:

    PHP Code:
                        $product['ships_in_own_box'] ?? $product['ready_to_ship'] ?? 0,
                        
    $product['dim_units'] ?? $product['dim_type'] ?? 'cm',
                        
    $product['weight_units'] ?? $product['weight_type'] ?? 'kgs' 
    .

    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.

  7. #467
    Join Date
    Sep 2007
    Posts
    5
    Plugin Contributions
    0

    Default Re: Canada Post module

    Thanks for the response - see my comments below:

    Questions for you:
    - do you normally use only a certain CP-provided packaging for your shipments? No - we never use any CP Provided packaging - we use a fixed set of boxes (all pre-defined) - currently each box is defined on the Canada Post Sellonline website.
    - what regular box sizes do you normally use? We have a bunch of different boxes from small (6x4x4inches to large 36x24x12inches) - probably 10 - 12 box sizes.
    - how often do you vary from a single box size? All of the boxes we used are pre-defined
    - how often do you use a bag instead of a box? (bags can be random sizes, which is harder to anticipate) Never - no bags
    - how often do you combine multiple items into a single package? - often, most shipments are multiple items into a single box.
    - were there any pain-points to using the old CP module? (packaging, quoted prices, etc) The old module worked well in the past, over the last couple of years it has become a bit unreliable with availability problems (server unreachable), and issues with displaying all shipping options (sometimes it returns all shipping options/rates - sometimes it doesn't). At this point, we've disabled it in our store. I've talked with Canada Post, they have minimized all support for Sellonline and it will be fully decommissioned by the end of this month (Sept 2025).

    I spoke with a developer who is familiar with the new Canada Post Developer Program, and the old Canada Post Sellonline service (but he is not familiar with Zencart) - he said that platforms/sites transitioning from Sellonline to the new Developer program have to add a local box library/database to their platform/site and use a cartonization algorithm to compare items to be shipped vs. boxes in the local box library/database to determine which boxes/weights are to be shipped, and pass that off to new Canada Post API.

  8. #468
    Join Date
    Sep 2025
    Location
    Osoyoos, BC
    Posts
    1
    Plugin Contributions
    0

    Default Re: Canada Post module

    Quote Originally Posted by grizak View Post
    The Canada Post Sell Online tool will be decommissioned by the end of September 2025. Does anyone have any plans to support the new Canada Post Developer Program for Zencart?

    BUMP

    Has anyone updated the Canada Post module to reflect the new Canada Post shipping?

  9. #469
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    10,522
    Plugin Contributions
    127

    Default Re: Canada Post module

    Working on it.
    That Software Guy. My Store: Zen Cart Support
    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.

  10. #470
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: Canada Post module

    Quote Originally Posted by buffdcosmetics View Post
    Has anyone updated the Canada Post module to reflect the new Canada Post shipping?
    Attached is a v2.0.0 beta module for testing.

    To get credentials for configuration of this module:
    Go to
    https://www.canadapost-postescanada....ingstarted.jsf
    and login using your existing Canada Post account credentials.
    Go back to that page again after logging in, and Join the developer program.
    If the menu is not clear, then: Navigate the menu: to Business > Ecommerce > Developer Program
    Join to get keys.

    Use the Production keys in this module. (username and password) (You won't need the Developer keys, just the Production keys).


    Customer number, if you need it, is next to your company name in the dropdown menu on the CP website.


    You'll need to double-check that the rates it's giving you are suitable for your parcels, because it no longer tries to fit packages into SellOnline-style boxes.

    This module is designed for ZC v2.0.0 and newer. It can be put onto v1.5.8a if you've previously installed the Twitch v1.7 module for v158a for SellOnline.
    Also, requires minimum PHP 7.4.
    Attached Files Attached Files
    .

    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.

 

 
Page 47 of 47 FirstFirst ... 37454647

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