Page 14 of 46 FirstFirst ... 4121314151624 ... LastLast
Results 131 to 140 of 459
  1. #131
    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.

  2. #132
    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?

  3. #133
    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?

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

    Default Re: Canada Post module

    Bump plz

    Does anyone have the answer as to why the Cda Post module is resetting the length, height, width back to 12x12x12?

    The check boxes also will reset.

    I am starting to think of uninstalling Cda Post and go with UPSXML instead - but I don't seee size dimensions there.

  5. #135

    help question Re: Canada Post module

    Does anyone know what the canadapostbak.php file is for?

  6. #136
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Canada Post module

    I would expect that's a backup file that should have been deleted. It most certainly should *not* have kept a ".php" extension. Same goes with any payment or shipping module.
    .

    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. #137
    Join Date
    Sep 2008
    Location
    Toronto, Ontario, Canada
    Posts
    469
    Plugin Contributions
    0

    Default Re: Canada Post module

    Ok - since there doesn't seem to be any answers to my posts in this thread...re 12x12x12

    How do I remove Canada Post info from my products in the Catalogue? I have uninstalled it from admin.

  8. #138
    Join Date
    Mar 2009
    Location
    Niagara Ontario
    Posts
    135
    Plugin Contributions
    0

    Default Re: Canada Post module

    where are you putting the dimensions mentioned above ? are you talking about the CPC module?
    I have issues with this as well and am trying to perfect it.
    and it concerns lettermail.
    the module is calculating costs correctly based on our price check with shipping to same destination on Ebay using CPC. however I can't get lettermail to display. and it doesn't display on Ebay either. Funny thing is I have zone rate enabled in the shipping module and the CPC shipping estimator produces a flat rate cost that seems to be correct . the client wants it to say lettermail to give customer a comfort level.
    I will keep posting my findings ....
    Last edited by usr50; 2 Apr 2011 at 03:34 AM. Reason: spell errors

  9. #139
    Join Date
    Jun 2008
    Location
    Canada
    Posts
    274
    Plugin Contributions
    0

    Default Re: Canada Post module

    Quote Originally Posted by janissaire View Post
    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?
    Hello janissaire,

    I'm sorry that Canada Post Module is not working for you. I had same problem at first. Then a check the files and notice that I mix up the 2 canadapost.php files. I upload All Files in the correct location and Then I was ready for business.
    Pre-Owned Books and Second Hand Stuff: http://www.onlineyardsale.ca

  10. #140
    Join Date
    Jun 2008
    Location
    Canada
    Posts
    274
    Plugin Contributions
    0

    Default Re: Canada Post module

    Quote Originally Posted by janissaire View Post
    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?
    Helo janissaire,

    If the quality of products goes above the letter dimensions or size it will give you the package rate.
    Pre-Owned Books and Second Hand Stuff: http://www.onlineyardsale.ca

 

 
Page 14 of 46 FirstFirst ... 4121314151624 ... 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