Page 1 of 2 12 LastLast
Results 1 to 10 of 470

Hybrid View

  1. #1
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Canada Post module

    Do you have an URL to your site where we can actually see this?
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  2. #2
    Join Date
    Dec 2008
    Posts
    55
    Plugin Contributions
    0

    Default Re: Canada Post module

    I have downloaded zencart version 1.3.9h, and have installed Canada post shipping module 1.3.9f2.
    I seem to have a problem. When I do an estimate for shipping it just gives me the store pickup option only.
    Is there some extra configuring that needs to be done?

    Any help would be greatly appreciated.

    Thanks,
    Les

  3. #3
    Join Date
    Dec 2008
    Posts
    55
    Plugin Contributions
    0

    Default Re: Canada Post module

    And to be clear this is a new install, no other modules are in use.

  4. #4
    Join Date
    May 2010
    Posts
    32
    Plugin Contributions
    0

    Default Re: Canada Post module

    Using Zen-cart 1.3.9h and Canada Post Shipping Module 1-3-9h lettermail, shipping rates did not work for me.

    After reading all of the posts, trying everything suggested, staring at my product dimensions and configuration both in zen-cart and at Canada Post, I finally broke down and decided to debug the code. I had nowhere else to look.

    I discovered this in includes/modules/shipping/canadapost.php:

    Code:
        if ($this->lettermail_available && ($shipping_weight <= $this->lettermail_max_weight))
        {
          /* Select the correct rate table based on destination country */
          switch ($order->delivery['country']['iso_code_2'])
          {
            case 'CA':
              {
                $table_cost = preg_split("[:,]", constant('MODULE_SHIPPING_CANADAPOST_LETTERMAIL_CAN'));
                $lettermail_service = sprintf("Domestic Lettermail: estimated %d-%d business days", round($this->turnaround_time / 24 + 2), round($this->turnaround_time / 24 + 4)); //factor in turnaround time
                break;
              }
            case 'US':
              {
                $table_cost = preg_split("[:,]", constant('MODULE_SHIPPING_CANADAPOST_LETTERMAIL_USA'));
                $lettermail_service = "U.S.A Letter-post, up to 2 weeks";
                break;
              }
            default:
              {
                $table_cost = preg_split("[:,]", constant('MODULE_SHIPPING_CANADAPOST_LETTERMAIL_INTL')); //Use overseas rate if not Canada or US
                $lettermail_service = "INTL Letter-post, up to 2 weeks";
              }
          }
    I don't think those preg_split calls will work properly unless they look like this:

    Code:
        if ($this->lettermail_available && ($shipping_weight <= $this->lettermail_max_weight))
        {
          /* Select the correct rate table based on destination country */
          switch ($order->delivery['country']['iso_code_2'])
          {
            case 'CA':
              {
                $table_cost = preg_split("/[:,]/", constant('MODULE_SHIPPING_CANADAPOST_LETTERMAIL_CAN'));
                $lettermail_service = sprintf("Domestic Lettermail: estimated %d-%d business days", round($this->turnaround_time / 24 + 2), round($this->turnaround_time / 24 + 4)); //factor in turnaround time
                break;
              }
            case 'US':
              {
                $table_cost = preg_split("/[:,]/", constant('MODULE_SHIPPING_CANADAPOST_LETTERMAIL_USA'));
                $lettermail_service = "U.S.A Letter-post, up to 2 weeks";
                break;
              }
            default:
              {
                $table_cost = preg_split("/[:,]/", constant('MODULE_SHIPPING_CANADAPOST_LETTERMAIL_INTL')); //Use overseas rate if not Canada or US
                $lettermail_service = "INTL Letter-post, up to 2 weeks";
              }
          }
    The regular expression "/"s are missing.

    Or at least, that's what I had to change to finally get the
    lettermail prices to work.

  5. #5
    Join Date
    Feb 2011
    Posts
    3
    Plugin Contributions
    0

    Default Re: Canada Post module

    Hello,

    I'm using Zen Cart v1.3.9h and I installed the Canada Post Shipping Module. I've searched this forum for days and I've tried uninstalling and reinstalling but I still cannot get the module to update my product listings to allow me to input my product dimensions, which, of course, makes it extremely difficult to get an accurate quote. While I have seen that many people have encountered this error, I haven't yet found a solution. When I installed my SQLPatch, I got the following error message, which may have something to do with this issue:

    Failed: 6
    ERROR: Cannot ADD column products_weight_type because it already exists.
    ERROR: Cannot ADD column products_dim_type because it already exists.
    ERROR: Cannot ADD column products_length because it already exists.
    ERROR: Cannot ADD column products_width because it already exists.
    ERROR: Cannot ADD column products_height because it already exists.
    ERROR: Cannot ADD column products_ready_to_ship because it already exists.
    Note: 6 statements ignored. See "upgrade_exceptions" table for additional details.


    Any help or tips to get in the right direction would be greatly appreciated!

    Thank you!

  6. #6
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Canada Post module

    Quote Originally Posted by Babyluxe View Post
    Hello,

    I'm using Zen Cart v1.3.9h and I installed the Canada Post Shipping Module. I've searched this forum for days and I've tried uninstalling and reinstalling but I still cannot get the module to update my product listings to allow me to input my product dimensions, which, of course, makes it extremely difficult to get an accurate quote. While I have seen that many people have encountered this error, I haven't yet found a solution. When I installed my SQLPatch, I got the following error message, which may have something to do with this issue:

    Failed: 6
    ERROR: Cannot ADD column products_weight_type because it already exists.
    ERROR: Cannot ADD column products_dim_type because it already exists.
    ERROR: Cannot ADD column products_length because it already exists.
    ERROR: Cannot ADD column products_width because it already exists.
    ERROR: Cannot ADD column products_height because it already exists.
    ERROR: Cannot ADD column products_ready_to_ship because it already exists.
    Note: 6 statements ignored. See "upgrade_exceptions" table for additional details.


    Any help or tips to get in the right direction would be greatly appreciated!

    Thank you!
    Those messages simply confirm that you've done the SQL updates step.
    But if you're not seeing the fields for entering the dimensions in your admin, then that means you've not uploaded the updated PHP files to your server's admin folder structure according to the instructions.
    .

    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. #7
    Join Date
    Feb 2011
    Posts
    3
    Plugin Contributions
    0

    Default Re: Canada Post module

    DrByte, thank you very much!

    I uploaded the files in wrong folder, but now that I reinstalled them in the CORRECT folder, it gives me the option of entering dimensions.

    Once again, thank you very much!

  8. #8
    Join Date
    Mar 2011
    Location
    Canada
    Posts
    1
    Plugin Contributions
    0

    Default Re: Canada Post module

    wow batman, I just waisted HOURS trying to get the lettermail to work on a fresh install of both zencart and cp shipping module, after hours i removed everything and re-installed it to have the same result, and i spent so much time just changing the boxes in CP profil, then i red throught all of that thread to finally stumble on your post, made the change and everything is working great...

    Thanks a lot

    Quote Originally Posted by batman42ca View Post
    Using Zen-cart 1.3.9h and Canada Post Shipping Module 1-3-9h lettermail, shipping rates did not work for me.

    After reading all of the posts, trying everything suggested, staring at my product dimensions and configuration both in zen-cart and at Canada Post, I finally broke down and decided to debug the code. I had nowhere else to look.

    I discovered this in includes/modules/shipping/canadapost.php:

    Code:
        if ($this->lettermail_available && ($shipping_weight <= $this->lettermail_max_weight))
        {
          /* Select the correct rate table based on destination country */
          switch ($order->delivery['country']['iso_code_2'])
          {
            case 'CA':
              {
                $table_cost = preg_split("[:,]", constant('MODULE_SHIPPING_CANADAPOST_LETTERMAIL_CAN'));
                $lettermail_service = sprintf("Domestic Lettermail: estimated %d-%d business days", round($this->turnaround_time / 24 + 2), round($this->turnaround_time / 24 + 4)); //factor in turnaround time
                break;
              }
            case 'US':
              {
                $table_cost = preg_split("[:,]", constant('MODULE_SHIPPING_CANADAPOST_LETTERMAIL_USA'));
                $lettermail_service = "U.S.A Letter-post, up to 2 weeks";
                break;
              }
            default:
              {
                $table_cost = preg_split("[:,]", constant('MODULE_SHIPPING_CANADAPOST_LETTERMAIL_INTL')); //Use overseas rate if not Canada or US
                $lettermail_service = "INTL Letter-post, up to 2 weeks";
              }
          }
    I don't think those preg_split calls will work properly unless they look like this:

    Code:
        if ($this->lettermail_available && ($shipping_weight <= $this->lettermail_max_weight))
        {
          /* Select the correct rate table based on destination country */
          switch ($order->delivery['country']['iso_code_2'])
          {
            case 'CA':
              {
                $table_cost = preg_split("/[:,]/", constant('MODULE_SHIPPING_CANADAPOST_LETTERMAIL_CAN'));
                $lettermail_service = sprintf("Domestic Lettermail: estimated %d-%d business days", round($this->turnaround_time / 24 + 2), round($this->turnaround_time / 24 + 4)); //factor in turnaround time
                break;
              }
            case 'US':
              {
                $table_cost = preg_split("/[:,]/", constant('MODULE_SHIPPING_CANADAPOST_LETTERMAIL_USA'));
                $lettermail_service = "U.S.A Letter-post, up to 2 weeks";
                break;
              }
            default:
              {
                $table_cost = preg_split("/[:,]/", constant('MODULE_SHIPPING_CANADAPOST_LETTERMAIL_INTL')); //Use overseas rate if not Canada or US
                $lettermail_service = "INTL Letter-post, up to 2 weeks";
              }
          }
    The regular expression "/"s are missing.

    Or at least, that's what I had to change to finally get the
    lettermail prices to work.

  9. #9
    Join Date
    Sep 2008
    Location
    Toronto, Ontario, Canada
    Posts
    469
    Plugin Contributions
    0

    Default Re: Canada Post module

    Ok - I put a post here because I wasn't sure If I was getting a conflict with ezPopulate:

    http://www.zen-cart.com/forum/showthread.php?t=176918

    but further research here shows that the issue might lie more with Cda Post shipping module than the EZpop one.

    I read a couple of posts here (after the post above) but am unsure what the solution was here.

    I have successfully mad my store using the EZpop and love it but I am being hit with the size dimension thing.

    Product 1
    Weight = 0.06 kgs
    Length = 20 cm
    Width = 16 cm
    Height = 1 cm

    Have tried checked and unchecked and hit save.

    When I go back into it it says:
    Product 1
    Weight = 0.06 kgs
    Length = 12 cm
    Width = 12 cm
    Height = 12 cm

    Module is installed correctly and I have a Cda post ID as well.
    Have set it to using their pricing.

    Any ideas?

  10. #10
    Join Date
    Sep 2008
    Location
    Toronto, Ontario, Canada
    Posts
    469
    Plugin Contributions
    0

    Default Re: Canada Post module

    I've currently got my module set to letter rates.

    If the quality of products goes above the letter size does it then give me the package rate?

 

 
Page 1 of 2 12 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

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