Forums / Addon Shipping Modules / Canada Post module

Canada Post module

Views: 188,608

Results 381 to 400 of 481
8 Mar 2018, 6:41 PM
#381
twitchtoo avatar

twitchtoo

Totally Zenned

Join Date:
Apr 2007
Location:
Ontario, Canada
Posts:
1,733
Plugin Contributions:
14

Canada Post module

Warning: the current** Canada Post Shipping Module for Zen Cart 1.53** will not work out of the box. There are coding errors...

I am currently rebuilding the module to be compatible with Zen 1.55f, will post updates/bug fixes when complete.

Twitch.
https://www.twitchtoo.com Do you work for free? Please donate.
June 7.2026 - NOW AVAILABLE - Twitch Base8 - Obsidian

14 Mar 2018, 2:26 PM
#382
northfur avatar

northfur

New Zenner

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

Re: Canada Post module

The current Canada Post module is terribly out of date. Canada Post has abandoned the Sell Online platform years ago, and uses only Rest/Soap. The solution I have mashed together, of the Shipping Boxes Manager module and Advanced Canada Post produces rates, but the box manager is terribly inaccurate with its logic for packing boxes, and the advanced Canada post module won't return rates for Tracked Packet, Priority and other services.

It's been 4 years since the Canada post Module has been updated, if twitchtoo or anyone can produce a module that works with CP's new platform, and handle boxes in a competent way, I'd gladly contribute money towards it.

14 Mar 2018, 4:07 PM
#383
soxophoneplayer avatar

soxophoneplayer

Totally Zenned

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

Re: Canada Post module

Northfur:

The current Canada Post module is terribly out of date. Canada Post has abandoned the Sell Online platform years ago, and uses only Rest/Soap. The solution I have mashed together, of the Shipping Boxes Manager module and Advanced Canada Post produces rates, but the box manager is terribly inaccurate with its logic for packing boxes, and the advanced Canada post module won't return rates for Tracked Packet, Priority and other services.

It's been 4 years since the Canada post Module has been updated, if twitchtoo or anyone can produce a module that works with CP's new platform, and handle boxes in a competent way, I'd gladly contribute money towards it.

I'm still using last Canada Post mod from the plugin page. Priority Shipping apparently doesn't work but I don't use it. I use the includes/modules/shipping/candapost file as written, not modified as mentioned a few posts back.

The boxes and packing work well for me and the quoted rate is usually dead on, or at least very close. It did take some fiddling years ago to get my box sizes set - its important to have length, width, depth in the same order for each box. And I created boxes that accommodate multiples of those dimensions and in the same sequence. (an item sized as 8x2x4 will NOT fit in a box 4x2x8 - instead the mod will search for the first box defined to accommodate the former. squence)

There was an issue, years back when I was on zc 1.3.7 - using the 'free shipping mod' resident in zen cart conflicted with the Canada Post Mod - the solution at the time (that I still use) is to leave the free shipping mod uninstalled and define free shipping threshold in the Canada Post set up (where the box sizes are defined).

My biggest gripe with Canada Post is that their site goes down more often than I like - affecting not just zen cart mod but other CanPost online services.

I am, however, looking forward to an update as it is surely a matter of time before it all goes south on me ;o)

Currently using zc 1.5.5f, php7.1

16 Apr 2018, 4:28 PM
#384
northfur avatar

northfur

New Zenner

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

Re: Canada Post module

So, is Canada Post down yet again or just me? Must be them, I can't even log into their website...

4 Aug 2018, 2:31 AM
#385
rensing avatar

rensing

New Zenner

Join Date:
Oct 2012
Location:
St. Catharines, ON Canada
Posts:
91
Plugin Contributions:
0

Re: Canada Post module

I just installed the CP module for my 1.5.5 ZC and can't get it to calculate the cost per shipment.
I'm not using letter mail so I turned that off.
I'm also not shipping outside Canada so I cleared out the spots for US and INT'L

I did notice that each of my products now have a section at the bottom of their config page where I can define the weight and size of the box, which I did.

When I log in as my test user and select an item to ship, i can get it to show me the Country and Province, but when I click on update it still comes up with $0 shipping, Store Pickup (Walk-in)

Does this add-on still work in 1.5.5 as I see it only goes up to 1.5.3 according to the download link.

I did configure my user name that I created earlier today with CP and do not see any errors anywhere so I'm assuming that my host has port 30000 open as needed.

Any suggestions?

Thanks

5 Aug 2018, 10:50 AM
#386
royal avatar

royal

Zen Follower

Join Date:
Jun 2008
Location:
Canada
Posts:
261
Plugin Contributions:
0

Re: Canada Post module

Hello rensing,

That is what I’m using on my current website. It’s working for me.

Please make sure that files are merge correctly. Also please take the time to read the old post if you have not done so already.

Pre-Owned Books and Second Hand Stuff: http://www.onlineyardsale.ca

17 Sep 2018, 8:22 PM
#387
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,849
Plugin Contributions:
18

Re: Canada Post module

Having concerns about loading this on 1.5.5f as, first thing out of the box, the function shoppingCart() has changed in the includes/classes/shoppingcart.php in the newest version of the file.

Concerned that merging the older over the new could break the cart.

@soxophoneplayer Are you using this file with the function as shoppingCart() or __construct()?

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

17 Sep 2018, 8:34 PM
#388
soxophoneplayer avatar

soxophoneplayer

Totally Zenned

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

Re: Canada Post module

dbltoe:

Having concerns about loading this on 1.5.5f as, first thing out of the box, the function shoppingCart() has changed in the includes/classes/shoppingcart.php in the newest version of the file.

Concerned that merging the older over the new could break the cart.

@soxophoneplayer Are you using this file with the function as shoppingCart() or __construct()?

I just did a file compare of includes/classes/shoppingcart with my livesite vs outof the box zc 1.5.5f. The only changes I have in the former is addition of the two sections of CanadaPost module. construct() apprears around line 79.

It is working for me fine (except as noted in earlier posts - the Priority Shipping option seems to not work for some folks but I don't use that anyway.)

18 Sep 2018, 4:28 AM
#389
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,849
Plugin Contributions:
18

Re: Canada Post module

The mod itself and the directions say to overwrite with the file and that would remove the newer _construct().:(

@twitchtoo Any success on this mod?

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

18 Sep 2018, 9:02 PM
#390
soxophoneplayer avatar

soxophoneplayer

Totally Zenned

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

Re: Canada Post module

dbltoe:

The mod itself and the directions say to overwrite with the file and that would remove the newer _construct().:(

@twitchtoo Any success on this mod?

When updating a mod that was written for an earlier version of zen cart I do a 3 way compare: the file in the mod, the file in the version of zc for which the mod was written, and the file in the new version of zc to which I want to upgrade. As a rule of thumb I ignore changes that were only between the two zen cart versions, and I make only the changes that the mod made in the earlier version. This doesn't always work for me if the mod files were dramatically altered, and in particular, if the changes to core files were not highlighted. In the case of Canada Post mod each and every change to the original file set was clearly identified within each file so it was easy to work with.

Basically, I merge ALL files and overwrite none. Otherwise, you end up with old core files mixed in with new core files.

18 Sep 2018, 11:11 PM
#391
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,849
Plugin Contributions:
18

Re: Canada Post module

We all try our best to make these things work, but everyone who has posted here with 1.5.5f has mentioned that some portion of the mod did not work. Most also said they didn't use that feature anyway.

Even the best of annotated code may break a newer version of the file its inserted into.

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

5 Nov 2018, 2:34 PM
#392
robertluer avatar

robertluer

New Zenner

Join Date:
Oct 2013
Location:
Canada
Posts:
30
Plugin Contributions:
0

Re: Canada Post module

The sell online server at Canada Post is offline again so our plugin cannot get prices. Does anyone have a working zencart site using the REST or SOAP system so they can calculate Canada Post shipping?

5 Nov 2018, 4:59 PM
#393
matgeek avatar

matgeek

New Zenner

Join Date:
Oct 2015
Posts:
16
Plugin Contributions:
0

Re: Canada Post module

robertluer:

The sell online server at Canada Post is offline again so our plugin cannot get prices...

Was just on phone with support, with any luck a ticket was actually issued and they are looking into it... Fingers crossed that it's back up today!

3 Jan 2019, 3:39 AM
#394
linewalker avatar

linewalker

New Zenner

Join Date:
Dec 2018
Location:
Ontario, Canada
Posts:
2
Plugin Contributions:
0

Re: Canada Post module

Hello, we have been having a problem with Canada Post shipping module since we upgraded our hosting server and our zen cart version from 1.5.3 to 1.5.4

We get this message when it calls for shipping quote;

"Canada Post Canada Post
Cannot reach Canada Post Server. You may refresh this page (Press F5 on your keyboard) to try again.
111 Connection refused
If you prefer to use Canada Post as your shipping method, please contact the Kart Works Canada Online Store via Email."

everything else is working with our site, we have been using zen cart for years about 10... I can work my way around the code some what.
I tried re installing the Canada Post shipping module a few times... no luck we have a 7.1 PHP server now but it is running a a down graded version that was the same as our old server. Our Fedex is working, Canada post it has been like this for over a month now. I figured they are on strike and there maybe problems to wait it out but I think it has something to do with coding or a fire wall or something????

Any help would be much appreciated,
Thank you in advance.

9 Jan 2019, 11:14 PM
#395
twitchtoo avatar

twitchtoo

Totally Zenned

Join Date:
Apr 2007
Location:
Ontario, Canada
Posts:
1,733
Plugin Contributions:
14

Re: Canada Post module

Northfur:

The current Canada Post module is terribly out of date. Canada Post has abandoned the Sell Online platform years ago, and uses only Rest/Soap. The solution I have mashed together, of the Shipping Boxes Manager module and Advanced Canada Post produces rates, but the box manager is terribly inaccurate with its logic for packing boxes, and the advanced Canada post module won't return rates for Tracked Packet, Priority and other services.

It's been 4 years since the Canada post Module has been updated, if twitchtoo or anyone can produce a module that works with CP's new platform, and handle boxes in a competent way, I'd gladly contribute money towards it.

Unfortunately funding to rebuild this project by my first client was cut when their hosting fees - to open the specific port needed - exceeded their projected income each month! There were other factors of course and each hosting company had similar pricing/support.

We instead developed a static/dynamic lookup that can gather the information by other means and present very accurate postal pricing *without *any time waiting for a remote processing server.

Obviously being wired directly into Canada Post is the purpose of this module and when funding returns I'll be happy to support it!

Twitch.
https://www.twitchtoo.com Do you work for free? Please donate.
June 7.2026 - NOW AVAILABLE - Twitch Base8 - Obsidian

11 Jan 2019, 5:21 PM
#396
northfur avatar

northfur

New Zenner

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

Re: Canada Post module

I've tried re-installing the regular canada post module from the plugins page on my 1.5.4 cart, and it's causing the shipping modules page on the admin side to hang. (see picture), what can I do to have the page load properly?Attachment 18258

11 Jan 2019, 5:40 PM
#397
twitchtoo avatar

twitchtoo

Totally Zenned

Join Date:
Apr 2007
Location:
Ontario, Canada
Posts:
1,733
Plugin Contributions:
14

Re: Canada Post module

Northfur:

I've tried re-installing the regular canada post module from the plugins page on my 1.5.4 cart, and it's causing the shipping modules page on the admin side to hang. (see picture), what can I do to have the page load properly?Attachment 18258

Find the** error logs** and there should be one for each time you hit the page and it hung.

Publish your findings here -* less the sensitive site details*.

We can help troubleshoot :)

Twitch.
https://www.twitchtoo.com Do you work for free? Please donate.
June 7.2026 - NOW AVAILABLE - Twitch Base8 - Obsidian

11 Jan 2019, 6:40 PM
#398
northfur avatar

northfur

New Zenner

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

Re: Canada Post module

[11-Jan-2019 13:37:52 America/Toronto] PHP Fatal error: Cannot redeclare class canadapost in /home/northfur/public_html/includes/modules/shipping/canadapost.php on line 0
is in the error log

16 Jan 2019, 7:19 AM
#399
linewalker avatar

linewalker

New Zenner

Join Date:
Dec 2018
Location:
Ontario, Canada
Posts:
2
Plugin Contributions:
0

Re: Canada Post module

What is a good alternative to using the Canada Post Module? We still want to use Canada Post just need another way to have it available for customers to get a close to reasonable shipping rate. What do most of you use to do this table rates?

Any insight would be helpful thank you for your response.

Ryan

16 Jan 2019, 3:27 PM
#400
northfur avatar

northfur

New Zenner

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

Re: Canada Post module

Powered through that last error. Now I'm hitting a wall again with this error:

[16-Jan-2019 10:22:00 America/Toronto] PHP Warning: file_get_contents(http://198.33.104.28:30000/%29: failed to open stream: Connection refused in /home/northfur/public_html/includes/modules/shipping/canadapost.php on line 342

I've tried the IP address and the sellonline address, I've tried with and without the fix from post #284
We just can't connect to Canada Post's old sellonline system anymore? http://sellonline.canadapost.ca:30000/ is unreachable?