Forums / Addon Shipping Modules / Canada Post module

Canada Post module

Views: 188,608

Results 341 to 360 of 481
5 Apr 2016, 6:59 PM
#341
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Canada Post module

tinabanana:

Im having the same issue with opencart, just wondering if there was an update on this?
Hi Tina,
What specific "same issue" are you referring to? (There are 300+ posts in this discussion :) )

The new REST-based Canada Post rate-request system is vastly different from SellOnline. But SellOnline does still function for existing accounts.

.
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.

5 Apr 2016, 9:15 PM
#342
tinabanana avatar

tinabanana

New Zenner

Join Date:
Apr 2016
Posts:
2
Plugin Contributions:
0

Re: Canada Post module

Thanks for the reply, i suppose that was a little vague :)
But it was referring to the last comment, about priority shipping no longer working with sellonline.

6 Apr 2016, 7:56 PM
#343
mikey_d avatar

mikey_d

New Zenner

Join Date:
Jan 2012
Location:
Canada
Posts:
16
Plugin Contributions:
0

Re: Canada Post module

So i've been having this problem with the CP module taking a very long time to calculate shipping. I don't see Canada Post fixing this issue any time soon, so I was contemplating going to a flat rate shipping model. Only problem is, I would like to keep lettermail rates since a bunch of my more popular items are rather tiny.
Now, here's my question....
Has anyone mucked around with this modules' code to disable the parcel calculations and only calculate the lettermail table rate.
It all works with calculating those dimensions that fit in the envelopes that you set up on the SellOnline website.

Another thought, are there any other shipping modules that work with item dimensions similar to the CP shipping module?

9 Apr 2016, 8:20 PM
#344
raxen avatar

raxen

New Zenner

Join Date:
Apr 2016
Posts:
2
Plugin Contributions:
0

Re: Canada Post module

Just wondering if others are having issues with this module not working. For backup I've reverted to flat rate shipping. If there's an estimated time when a new module will be created, I would not mind pitching in money to help things move along faster.

9 Apr 2016, 8:33 PM
#345
northfur avatar

northfur

New Zenner

Join Date:
Jan 2015
Location:
On, Canada
Posts:
40
Plugin Contributions:
0

Re: Canada Post module

The Canada Post module is still not returning results for Priority to the USA or Elsewhere. Thankfully it's still producing Xpresspost, Expedited, Tracked Packet and Small Packet rates. It's only a matter of time before SellOnline stops functioning.

A new CP module is still underway with Dr.Byte working on it, if you want to contribute anything to him, just send him a message.

CP is no longer providing support for SellOnline, and is pushing its new REST/SOAP platform. https://www.canadapost.ca/cpotools/apps/drc/home?execution=e1s1
So Dr.Byte has had to start a new CP module from scratch instead of simply patching the old module, not to mention having to re-code all the "tetris" functionality of the previous module to have dimensions of items fit properly into defined boxes, have to deal with new stuff like a dispatch date that needs to be defined, among everything else.

10 Apr 2016, 3:31 PM
#346
raxen avatar

raxen

New Zenner

Join Date:
Apr 2016
Posts:
2
Plugin Contributions:
0

Re: Canada Post module

I'm having trouble with it returning results altogether. Im getting my server admin to verify if there were changes this Friday but on my configuration side nothing else has changed.

I'll reach out to Dr. Byte and see what's happening with the new module. Hopefully it's finished soon.

19 May 2016, 12:52 PM
#347
oxxyfx avatar

oxxyfx

New Zenner

Join Date:
Sep 2007
Posts:
77
Plugin Contributions:
0

Re: Canada Post module

The Sellonline servers have been offline now for 2 days. Anybody knows if these will come back?

19 May 2016, 2:45 PM
#348
soxophoneplayer avatar

soxophoneplayer

Totally Zenned

Join Date:
Feb 2008
Posts:
534
Plugin Contributions:
0

Re: Canada Post module

oxxyfx:

The Sellonline servers have been offline now for 2 days. Anybody knows if these will come back? Seems to be working on my site this morning.

28 Jul 2016, 9:17 PM
#349
marieaa avatar

marieaa

Zen Follower

Join Date:
Jan 2013
Posts:
113
Plugin Contributions:
0

Re: Canada Post module

I installed this mod on ZC 1.5.5a... with Ceon Mapping SEO installed. I get shipping quotes, not really accurate but I can work with what shows for now waiting for the new mod... however, there is a glitch, if I have virtual products in my cart only, I don't get a shipping quote which is perfect. If I have only items to be shipped, the quote comes fine. If I add a virtual product to my cart when there is a physical item to ship, the shipping quote changes.

For example, I have a roll of paper in my cart, the quote is 16.26$ but when adding the virtual product I get a quote at 32.12$ when it should remain the same.

I've redone the install twice thinking I might have missed a step but no luck.

phpMyAdmin
•Version: 4.0.10.14, dernière version stable : 4.4.15.7

Database: MySQL 5.5.49

I should add that I have another site hosted on the same server with ZC 1.5.1 and Ceon and Canada Post and don't have that issue at all there.

Thanks for any input

29 Jul 2016, 4:53 PM
#350
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Canada Post module

marieAA:

I should add that I have another site hosted on the same server with ZC 1.5.1 and Ceon and Canada Post and don't have that issue at all there.
I imagine the answer is in the differences between your customizations to those sites.

.
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.

29 Jul 2016, 5:45 PM
#351
marieaa avatar

marieaa

Zen Follower

Join Date:
Jan 2013
Posts:
113
Plugin Contributions:
0

Re: Canada Post module

DrByte:

I imagine the answer is in the differences between your customizations to those sites.

this is where my confusion stems from... the older one is customized, the new one I'm working on now only had Ceon URI Mapping SEO and Edit Orders... that's it.

29 Jul 2016, 7:34 PM
#352
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Canada Post module

I haven't studied the Edit Orders plugin code, but I do know it changes the code for processing shipping quotes and calculating order totals. If that's the primary difference between the sites, then perhaps it's got a bug?

.
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.

5 Aug 2016, 12:46 PM
#353
degufan avatar

degufan

New Zenner

Join Date:
Nov 2012
Posts:
19
Plugin Contributions:
0

Re: Canada Post module

Hi guys!

My module is (now) working well, but I encountered a situation: no matter how many choices I select on Canada Post side's (4 available), I only get 2 choices in my Canada Post shipping options in the cart...
How can I change that? I want them to be all available...

Thanks a lot!

21 Sep 2016, 8:02 PM
#354
dimsumgurl avatar

dimsumgurl

Zen Follower

Join Date:
Dec 2009
Location:
Canada
Posts:
160
Plugin Contributions:
0

Re: Canada Post module

I have searched all over to forum as best as I could but I couldn't find an answer to my problem.

A month ago, my Canada Post shipping module was able to calculate rates instantly and accurately. Then suddenly it stopped working

I have tried to apply the patch from this thread comment #284 https://www.zen-cart.com/showthread.php?94151-Canada-Post-module/page29

I have tried testing this on the most recent v1.5.5a (previously using v1.3.9h) and it doesn't work on both

I have made sure my hosting opened port 30000

I have the IP address for Sell Online (sellonline.canadapost.ca) changed to 198.33.104.28

Is there anything else I am missing that I should try?

https://www.thelittlestgiftboutique.com is the website if anyone wants to take a look.

Thanks so much

16 Nov 2016, 11:20 PM
#355
dtomlinson avatar

dtomlinson

New Zenner

Join Date:
Jan 2016
Location:
Toronto
Posts:
23
Plugin Contributions:
0

Re: Canada Post module

Dr Byte - Does this module work with 155b? Or is there a replacement?

I see some comments about possible/close with incentive, which is available too. We normally have done flat-rate within Canada - 40+/day, but even for comparison, I'd love to have the option for alternate ratings, for our non (close to zero) weight products!

Dan

18 Dec 2016, 6:14 AM
#356
thebeadyeye avatar

thebeadyeye

New Zenner

Join Date:
Feb 2007
Posts:
47
Plugin Contributions:
0

Re: Canada Post module

Is there any chance we can get an update for v1.5.5b? We are upgrading our old site from v.1.3.9h to the latest and we really really need this plugin. Anyone able to get it to work with the new version? I installed it and the estimator doesn't display the Canada Post rates.

18 Dec 2016, 5:08 PM
#357
soxophoneplayer avatar

soxophoneplayer

Totally Zenned

Join Date:
Feb 2008
Posts:
534
Plugin Contributions:
0

Re: Canada Post module

thebeadyeye:

... Anyone able to get it to work with the new version? I installed it and the estimator doesn't display the Canada Post rates.

I'm using it (whichever was the last version offered on the plugins page) with 1.5.5b. My understanding from other posts is that 'courier' choice of shipping no longer functions because of changes made by Canada Post. I never used that option so not an issue for me. The estimator works for me as does the shopping cart calculations. I didn't do any customizing for 1.5.5b other than the same merges with zc files that I've made since zc 1.3.7. In addition, the mod plays nice with the new (amazing) One Page Checkout mod.

Also noted from other posts on this forum that Canada Post has new api and hopefully this mod will be updated accordingly, but in the meantime I'm grateful that it continues to work for me.

18 Dec 2016, 10:14 PM
#358
thebeadyeye avatar

thebeadyeye

New Zenner

Join Date:
Feb 2007
Posts:
47
Plugin Contributions:
0

Re: Canada Post module

Never mind, it seems to be working now :).

It might of been Canada Post that was down since it was 1 am on a Sunday. This mod is absolutely necessary for our business, so it's a big relief.

8 Jan 2017, 10:03 PM
#359
one_tall_man avatar

one_tall_man

Zen Follower

Join Date:
Feb 2009
Posts:
125
Plugin Contributions:
0

Re: Canada Post module

Can I still use Canada Post module after upgrading to 1.5.5b?
I tried to merge the files manually and everything was simple until I reached

canada_post_shipping_module_1_5_3/admin/includes/modules/copy_to_confirm.php

where there is a merge conflict at line## 86-86 of the vanilla 1.5.5b.

My install: was Vanilla 1.3.9h, now 1.5.5b, Apache 2.4, PHP 7.0.6, MySQL 5.5.8 64b, Windows 7 64b, 8GB RAM, i3 3.3gHz
Modules: [Payment=Paypal] [Shipping=Canada Post 1.5.3 merged] [nonCAPTCHA]

8 Jan 2017, 11:25 PM
#360
soxophoneplayer avatar

soxophoneplayer

Totally Zenned

Join Date:
Feb 2008
Posts:
534
Plugin Contributions:
0

Re: Canada Post module

one tall man:

Can I still use Canada Post module after upgrading to 1.5.5b?...
canada_post_shipping_module_1_5_3/admin/includes/modules/copy_to_confirm.php...

Here is my copy of my merged admin/incl/mod/copy_to_confirm: (I'm using zc 1.5.5d but the vanilla file is same as 1.5.5b).

<?php
/**
 * @package admin
 * @copyright Copyright 2003-2016 Zen Cart Development Team
 * @copyright Portions Copyright 2003 osCommerce
 * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
 * @version $Id: Author: DrByte  Thu Jul 16 20:18:12 2015 -0400 Modified in v1.5.5 $
 */
if (!defined('IS_ADMIN_FLAG')) {
  die('Illegal Access');
}
        if (isset($_POST['products_id']) && isset($_POST['categories_id'])) {
          $products_id = zen_db_prepare_input($_POST['products_id']);
          $categories_id = zen_db_prepare_input($_POST['categories_id']);

// Copy attributes to duplicate product
          $products_id_from=$products_id;

          if ($_POST['copy_as'] == 'link') {
            if ($categories_id != $current_category_id) {
              $check = $db->Execute("select count(*) as total
                                     from " . TABLE_PRODUCTS_TO_CATEGORIES . "
                                     where products_id = '" . (int)$products_id . "'
                                     and categories_id = '" . (int)$categories_id . "'");
              if ($check->fields['total'] < '1') {
                $db->Execute("insert into " . TABLE_PRODUCTS_TO_CATEGORIES . "
                                          (products_id, categories_id)
                              values ('" . (int)$products_id . "', '" . (int)$categories_id . "')");

                zen_record_admin_activity('Product ' . (int)$products_id . ' copied as link to category ' . (int)$categories_id . ' via admin console.', 'info');
              }
            } else {
              $messageStack->add_session(ERROR_CANNOT_LINK_TO_SAME_CATEGORY, 'error');
            }
          } elseif ($_POST['copy_as'] == 'duplicate') {
            $old_products_id = (int)$products_id;
// CANADA POST changes below:
            $product = $db->Execute("select products_type, products_quantity, products_model, products_image,
                                            products_price, products_virtual, products_date_available, products_weight,
                                             products_weight_type, products_dim_type, products_length, products_width, products_height, 
                                            products_ready_to_ship,
                                            products_tax_class_id, manufacturers_id,
                                            products_quantity_order_min, products_quantity_order_units, products_priced_by_attribute,
                                            product_is_free, product_is_call, products_quantity_mixed,
                                            product_is_always_free_shipping, products_qty_box_status, products_quantity_order_max, products_sort_order,
                                            products_price_sorter, master_categories_id
                                     from " . TABLE_PRODUCTS . "
                                     where products_id = '" . (int)$products_id . "'");

            // fix Product copy from if Unit is 0
            if ($product->fields['products_quantity_order_units'] == 0) {
              $sql = "UPDATE " . TABLE_PRODUCTS . " SET products_quantity_order_units = 1 WHERE products_id = '" . (int)$products_id . "'";
              $results = $db->Execute($sql);
            }
            // fix Product copy from if Minimum is 0
            if ($product->fields['products_quantity_order_min'] == 0) {
              $sql = "UPDATE " . TABLE_PRODUCTS . " SET products_quantity_order_min = 1 WHERE products_id = '" . (int)$products_id . "'";
              $results = $db->Execute($sql);
            }

            $tmp_value = zen_db_input($product->fields['products_quantity']);
            $products_quantity = (!zen_not_null($tmp_value) || $tmp_value=='' || $tmp_value == 0) ? 0 : $tmp_value;
            $tmp_value = zen_db_input($product->fields['products_price']);
            $products_price = (!zen_not_null($tmp_value) || $tmp_value=='' || $tmp_value == 0) ? 0 : $tmp_value;
            $tmp_value = zen_db_input($product->fields['products_weight']);
            $products_weight = (!zen_not_null($tmp_value) || $tmp_value=='' || $tmp_value == 0) ? 0 : $tmp_value;

            $db->Execute("insert into " . TABLE_PRODUCTS . "
                                      (products_type, products_quantity, products_model, products_image,
                                       products_price, products_virtual, products_date_added, products_date_available,
                                       products_weight, products_status, products_tax_class_id,
                                       manufacturers_id,
                                       products_weight_type, products_dim_type, products_length, products_width,
                                       products_height, 
                                       products_ready_to_ship, 
                                       products_quantity_order_min, products_quantity_order_units, products_priced_by_attribute,
                                       product_is_free, product_is_call, products_quantity_mixed,
                                       product_is_always_free_shipping, products_qty_box_status, products_quantity_order_max, products_sort_order,
                                       products_price_sorter, master_categories_id
                                       )
                          values ('" . zen_db_input($product->fields['products_type']) . "',
                                  '" . $products_quantity . "',
                                  '" . zen_db_input($product->fields['products_model']) . "',
                                  '" . zen_db_input($product->fields['products_image']) . "',
                                  '" . $products_price . "',
                                  '" . zen_db_input($product->fields['products_virtual']) . "',
                                  now(),
                                  " . (zen_not_null(zen_db_input($product->fields['products_date_available'])) ? "'" . zen_db_input($product->fields['products_date_available']) . "'" : 'null') . ",
                                  '" . $products_weight . "', '0',
                                  '" . (int)$product->fields['products_tax_class_id'] . "',
                                  '" . (int)$product->fields['manufacturers_id'] . "',
                                  '" . zen_db_input(($product->fields['products_quantity_order_min'] == 0 ? 1 : $product->fields['products_quantity_order_min'])) . "',
                                  '" . zen_db_input(($product->fields['products_quantity_order_units'] == 0 ? 1 : $product->fields['products_quantity_order_units'])) . "',
                                  '" . zen_db_input($product->fields['products_length']) . "',
                                  '" . zen_db_input($product->fields['products_width']) . "',
                                  '" . zen_db_input($product->fields['products_height']) . "',
                                  '" . zen_db_input($product->fields['products_ready_to_ship']) . "', 
                                  '" . zen_db_input($product->fields['products_quantity_order_min']) . "',
                                  '" . zen_db_input($product->fields['products_quantity_order_units']) . "',
                                  '" . zen_db_input($product->fields['products_priced_by_attribute']) . "',
                                  '" . (int)$product->fields['product_is_free'] . "',
                                  '" . (int)$product->fields['product_is_call'] . "',
                                  '" . (int)$product->fields['products_quantity_mixed'] . "',
                                  '" . zen_db_input($product->fields['product_is_always_free_shipping']) . "',
                                  '" . zen_db_input($product->fields['products_qty_box_status']) . "',
                                  '" . zen_db_input($product->fields['products_quantity_order_max']) . "',
                                  '" . zen_db_input($product->fields['products_sort_order']) . "',
                                  '" . zen_db_input($product->fields['products_price_sorter']) . "',
                                  '" . zen_db_input($categories_id) .
                                  "')");

            $dup_products_id = $db->Insert_ID();

            $description = $db->Execute("select language_id, products_name, products_description,
                                                             products_url
                                         from " . TABLE_PRODUCTS_DESCRIPTION . "
                                         where products_id = '" . (int)$products_id . "'");
            while (!$description->EOF) {
              $db->Execute("insert into " . TABLE_PRODUCTS_DESCRIPTION . "
                                        (products_id, language_id, products_name, products_description,
                                         products_url, products_viewed)
                            values ('" . (int)$dup_products_id . "',
                                    '" . (int)$description->fields['language_id'] . "',
                                    '" . zen_db_input($description->fields['products_name']) . "',
                                    '" . zen_db_input($description->fields['products_description']) . "',
                                    '" . zen_db_input($description->fields['products_url']) . "', '0')");
              $description->MoveNext();
            }

            $db->Execute("insert into " . TABLE_PRODUCTS_TO_CATEGORIES . "
                          (products_id, categories_id)
                          values ('" . (int)$dup_products_id . "', '" . (int)$categories_id . "')");
            $products_id = $dup_products_id;

// FIX HERE
/////////////////////////////////////////////////////////////////////////////////////////////
// Copy attributes to duplicate product
// moved above            $products_id_from=zen_db_input($products_id);
            $products_id_to= $dup_products_id;
            $products_id = $dup_products_id;

if ( $_POST['copy_attributes']=='copy_attributes_yes' and $_POST['copy_as'] == 'duplicate' ) {
  // $products_id_to= $copy_to_products_id;
  // $products_id_from = $pID;
//            $copy_attributes_delete_first='1';
//            $copy_attributes_duplicates_skipped='1';
//            $copy_attributes_duplicates_overwrite='0';

            if (DOWNLOAD_ENABLED == 'true') {
              $copy_attributes_include_downloads='1';
              $copy_attributes_include_filename='1';
            } else {
              $copy_attributes_include_downloads='0';
              $copy_attributes_include_filename='0';
            }

            zen_copy_products_attributes($products_id_from, $products_id_to);
}
// EOF: Attributes Copy on non-linked
/////////////////////////////////////////////////////////////////////

            // copy product discounts to duplicate
            if ($_POST['copy_discounts'] == 'copy_discounts_yes') {
              zen_copy_discounts_to_product($old_products_id, (int)$dup_products_id);
            }

            zen_record_admin_activity('Product ' . (int)$old_products_id . ' duplicated as product ' . (int)$dup_products_id . ' via admin console.', 'info');
          }

          // reset products_price_sorter for searches etc.
          zen_update_products_price_sorter($products_id);

        }
        zen_redirect(zen_href_link(FILENAME_CATEGORIES, 'cPath=' . $categories_id . '&pID=' . $products_id . (isset($_GET['page']) ? '&page=' . $_GET['page'] : '')));