Re: Canada Post Module for 1.56c
Quote:
Originally Posted by
delia
Where is the 1.5.5f version? I was waiting for the new version based on what is on the zen cart site, thinking it would be for 1.5.5 and up. If there is a version somewhere else, please tell me.
The 1.55f version didn't get released publicly due to a lack of time and funding. Also the only reason the current 1.56c version isn't backwards compatible is because it ships installed into stock 1.56c files - the overall changes are minimal with this type of shipping module...
Option 1:
Copy all new live site and admin files directly into the same folder locations in 1.55f. The new files will work with 1.55f directly.
File compare core overwrite files:
classes/shopping_cart.php
includes/languages/YOUR_TEMPLATE/english.php
admin/includes/modules/all files within
Move only the Canada Post tracer changes. If you can't see them, it's easy to file compare a stock 1.56c file with those in this package to find what I've changed - then paste those changes into the same locations in the 1.55f files.
Option 2:
Email me directly for the unreleased 1.55f package... which is identical to option 1 only it's all done for you :)
(Donations appreciated)
Option 3:
Hire a fellow like me to install it or I can upgrade the site to 1.56c before the next php updates get rolled out:
https://www.php.net/supported-versions.php
:cheers:
Re: Canada Post Module for 1.56c
Quote:
Originally Posted by
twitchtoo
The 1.55f version didn't get released publicly due to a lack of time and funding. Also the only reason the current 1.56c version isn't backwards compatible is because it ships installed into stock 1.56c files - the overall changes are minimal with this type of shipping module...
Option 1:
Copy all
new live site and admin files directly into the same folder locations in 1.55f.
The new files will work with 1.55f directly.
File compare core overwrite files:
classes/shopping_cart.php
includes/languages/YOUR_TEMPLATE/english.php
admin/includes/modules/all files within
Move only the Canada Post tracer changes. If you can't see them, it's easy to file compare a stock 1.56c file with those in this package to find what I've changed - then paste those changes into the same locations in the 1.55f files.
Option 2:
Email me directly for the unreleased 1.55f package... which is identical to option 1 only it's all done for you :)
(Donations appreciated)
Option 3:
Hire a fellow like me to install it
or I can upgrade the site to 1.56c before the next php updates get rolled out:
https://www.php.net/supported-versions.php
:cheers:
Thanks, if my client decides to install a new version, I'll check back with you. What he has works now as far as I know.
Re: Canada Post Module for 1.56c
Hi, I am using ZC 1.5.5 and was running Canada post 1.6. out of nowhere it is no longer able to get quotes. error "internal" which when I dug deeper says unable to reach sever and I only see that when I change from $errno>0 to $errno>=0
PHP Code:
function _sendToHost($data)
{
$url = 'https://' . (MODULE_SHIPPING_CANADAPOST_CPCID == 'CPC_DEMO_XML' ? 'qa-' : '') . 'sellonline.canadapost.ca/sellonline/Rating';
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
curl_setopt($ch, CURLOPT_TIMEOUT, 3);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 3);
// curl_setopt($ch, CURLOPT_FRESH_CONNECT, true);
curl_setopt($ch, CURLOPT_USERAGENT, 'Zen Cart merchant at ' . urlencode(HTTPS_SERVER));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
$httpcode = curl_getinfo($ch, CURLINFO_HTTP_CODE);
$error = curl_error($ch);
$errno = curl_errno($ch);
curl_close($ch);
if ($errno > 0) {
$response = '<?xml version="1.0" ?><eparcel><error><statusMessage>' . MODULE_SHIPPING_CANADAPOST_COMM_ERROR . ($errno != 0 ? '<br /><strong>' . $errno . ' ' . $error . '</strong>' : '') . '</statusMessage></error></eparcel>';
}
return $response;
}
I tried the updated version too 1.6.1 and still getting the same error.
I did try curl from terminal of that server "curl https://sellonline.canadapost.ca/sellonline/Rating" and I get method not allowed which is normal since I used et method.
Is anyone else experiencing this? not sure how to fix it.
Re: Canada Post Module for 1.56c
OK, I have done more digging and I seem to be getting error
Code:
0 ]> -50000 An internal problem occurred. Please contact the Sell Online Customer service Desk at mailto:/[email protected]
Will be checking with Canada Post
Re: Canada Post Module for 1.56c
Riomaha, Due to popular demand I have a public release available:
Twitch Canada Post Shipping Module - Sell Online Public Release
20a for 1.55f
August 9.2020
In Zen terms that's version 1.64 for Zen Cart 1.55f.
Email me and I can send you the module .zip and install instructions.
Re: Canada Post Module for 1.56c
Quote:
Originally Posted by
riomaha
OK, I have done more digging and I seem to be getting error
Code:
0 ]> -50000 An internal problem occurred. Please contact the Sell Online Customer service Desk at mailto:/[email protected]
Will be checking with Canada Post
I hope this helps others. If you wish to troubleshoot your Canada Post module. Trying using this test page to test your CPC_ code. Only change the CPC code on the page and submit it. If you are able to get rates, then your code is working. In my case, my CPC code isn't working.
Also if you want to ensure your module is working fine, Change the CPC code on your site to CPC_DEMO_XML and check your site. If you are getting rates, then your module is working.
Rio
Re: Canada Post Module for 1.56c
I'm presently upgrading my site to v1.5.7c. Is there any kind of news on any Canada Post shipping estimate plugin that is being worked on?