Jump to content



Latest News: (loading..)

* * * * * 1 votes

Canada Post Automated Labels 2.0 AND Canada Post Shipping Module 4.0


  • Please log in to reply
229 replies to this topic

#21   Stump3r

Stump3r
  • Members
  • 23 posts
  • Real Name:Shane

Posted 02 May 2008 - 02:54 PM

View Postinsaini, on May 2 2008, 04:37 AM, said:

Shane,  only had to read post 14 above to note that a change was needed.. take a look

http://forums.oscommerce.com/index.php?s=&...t&p=1242251

once you make the change and run it on the database again you should be fine..

J

J,

Close but no cigar. The automated labels portion of the SQL code still errors.
If you remove it and run the last portion for CP shipping module it runs fine.

Now I have a new error that appears in the Manufacturers module.
1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' countries_id manufacturers' at line 1

select count(*) as total from, countries_id manufacturers

[TEP STOP]

Here is the SQL error that pops up when trying to run Automated label script portion.

 ##########################################################################
# CANADA POST AUTOMATED LABELS DB QUERIES
##########################################################################
ALTER TABLE products ALTER TABLE manufacturers ADD countries_id INT NOT NULL;

MySQL said: Documentation
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'TABLE manufacturers ADD countries_id INT NOT NULL' at line 3

What am I missing?
Appreciate the help more than you can know.

#22   KKT

KKT
  • Members
  • 9 posts
  • Real Name:Keaton

Posted 02 May 2008 - 03:11 PM

Hey, I'm trying to determine whether this is the right Contribution for me.

I'm in Canada, i have a very small store that just sells some one-off items, some tshirts and buttons, I'm not charging tax and I'm thinking that the easiest thing to do would be to assign different countries or regions a flat shipping rate per item.
I do want to offer full international shipping though. Is this something that can be done with this contribution?

thanks,
KKT

#23   pueblito

pueblito
  • Members
  • 19 posts
  • Real Name:Pueblito.ca

Posted 02 May 2008 - 07:26 PM

Running into a bit of an issue with my install.

Running the provided ship_canadapost.php file I get an error message on top of the screen.

Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /../admin/includes/languages/english/ship_canadapost.php on line 75


I try to process the shippment anyway, but I get back two error messages under "Initialized" :

---

Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /home2/epipccom/public_html/pueblito.ca/admin/includes/languages/english/ship_canadapost.php on line 75
Step 1. Initialized.

Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /home2/epipccom/public_html/pueblito.ca/admin/includes/languages/english/ship_canadapost.php on line 75
Step 2. Error: Failed check in /home2/epipccom/public_html/pueblito.ca/admin/includes/languages/english/ship_canadapost.php at line 17. This most likely means that Canada Post has changed their user interface. You need to update your Canada Post Automatic Shipping Labels module.

---
so I remove the '\' character on line 75 and try to process the order, but I still get the following error message on the right hand side underneath "initialized".

Failed check  /../admin/includes/languages/english/ship_canadapost.php at line 17
This most likely means that Canada Post has changed their user interface. You need to
update your Canada Post Automatic Shipping Labels module


If anyone can help I'd be very grateful.

Cheers

#24   insaini

insaini
  • Members
  • 208 posts
  • Real Name:Jesse B.
  • Gender:Male
  • Location:Brampton, Ontario

Posted 03 May 2008 - 09:48 AM

View PostStump3r, on May 2 2008, 10:54 AM, said:

J,

Close but no cigar. The automated labels portion of the SQL code still errors.
If you remove it and run the last portion for CP shipping module it runs fine.

Now I have a new error that appears in the Manufacturers module.
1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' countries_id manufacturers' at line 1

select count(*) as total from, countries_id manufacturers

[TEP STOP]

Here is the SQL error that pops up when trying to run Automated label script portion.

 ##########################################################################
# CANADA POST AUTOMATED LABELS DB QUERIES
##########################################################################
ALTER TABLE products ALTER TABLE manufacturers ADD countries_id INT NOT NULL;

MySQL said: Documentation
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'TABLE manufacturers ADD countries_id INT NOT NULL' at line 3

What am I missing?
Appreciate the help more than you can know.


Where did you get that sql command?

ALTER TABLE products ALTER TABLE manufacturers ADD countries_id INT NOT NULL;

That is no where in the contribution..

the command is

ALTER TABLE products
ADD products_description_short VARCHAR( 64 ) NOT NULL,
ADD products_tariff VARCHAR( 32 ) NOT NULL;

ALTER TABLE manufacturers ADD countries_id INT NOT NULL;

ALTER TABLE orders ADD cp_tracking VARCHAR( 18 ) NULL;

I have no idea where you got that above command that you tried to run and got that error..

J

#25   insaini

insaini
  • Members
  • 208 posts
  • Real Name:Jesse B.
  • Gender:Male
  • Location:Brampton, Ontario

Posted 03 May 2008 - 09:51 AM

View PostKKT, on May 2 2008, 11:11 AM, said:

Hey, I'm trying to determine whether this is the right Contribution for me.

I'm in Canada, i have a very small store that just sells some one-off items, some tshirts and buttons, I'm not charging tax and I'm thinking that the easiest thing to do would be to assign different countries or regions a flat shipping rate per item.
I do want to offer full international shipping though. Is this something that can be done with this contribution?

thanks,
KKT

You get whatever shipping methods canada post provides.. that is shipping within canada, usa, or international ..

once you set you sellonline and ventureone accounts.. you can also specify flat rate shipping.. handling charges.. etc..

#26   insaini

insaini
  • Members
  • 208 posts
  • Real Name:Jesse B.
  • Gender:Male
  • Location:Brampton, Ontario

Posted 03 May 2008 - 09:54 AM

View Postpueblito, on May 2 2008, 03:26 PM, said:

Running into a bit of an issue with my install.

Running the provided ship_canadapost.php file I get an error message on top of the screen.

Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /../admin/includes/languages/english/ship_canadapost.php on line 75
I try to process the shippment anyway, but I get back two error messages under "Initialized" :

---


I found the problem..  something i missed ..

open the language file /admin/includes/languages/english/ship_canadapost.php

on line 38 you will see

define ('ENTRY_DECLARED_VALUE','Declared Value ('.DEFAULT_CURRENCY.'):');\

remove the ending \

thats it..

J

#27   pueblito

pueblito
  • Members
  • 19 posts
  • Real Name:Pueblito.ca

Posted 03 May 2008 - 02:50 PM

View Postinsaini, on May 3 2008, 05:54 AM, said:

I found the problem..  something i missed ..

open the language file /admin/includes/languages/english/ship_canadapost.php

on line 38 you will see

define ('ENTRY_DECLARED_VALUE','Declared Value ('.DEFAULT_CURRENCY.'):');\

remove the ending \

thats it..

J

Thanks J. Got that far, but I still get:


Failed check /../admin/includes/languages/english/ship_canadapost.php at line 17
This most likely means that Canada Post has changed their user interface. You need to
update your Canada Post Automatic Shipping Labels module


when I try to submit from the admin screen.

#28   chrisjclay

chrisjclay
  • Members
  • 10 posts
  • Real Name:chris clay

Posted 04 May 2008 - 08:23 AM

View Postinsaini, on Apr 21 2008, 02:28 PM, said:

hmm.. well that does say libcurl 7.10 .. which isnt libcurl 7.16 .. but give it a go and see how it works out..

Hey there,

I did a fresh install of the module and it's still not working on GoDaddy, but it turns out I'll need to add a few lines of code re: a proxy server to get it to work:

"GoDaddy Help Center" said:

On our shared hosting, any CURL applications that make secure HTTP connections (HTTPS over port 443) need to pass through a proxy server. The address for this proxy server is proxy.shr.secureserver.net and connections must specify the use of port 3128. The code below already includes this information.

GoDaddy posted some sample code here:

http://help.godaddy.com/article/289

Similarly, someone in an older Canada Post mod used the proxy server to get things working on GoDaddy:

"darkknightenterprises" said:

I couldn't get this thing to work because I forgot to check and make sure that the proxy call in cURL was in the code. Added the needed lines and got it working.

He posted the fix here...

http://www.oscommerce.com/community/contributions,391

which seems to add an extra few lines of code to the mod:

//Next 2 lines for GoDaddy.com hosting accounts.
curl_setopt ($ch, CURLOPT_PROXYTYPE, CURLPROXY_HTTP);
curl_setopt($ch, CURLOPT_PROXY, "http://proxy.shr.secureserver.net:3128");

Similarly, someone posted a similar fix for the Fed Ex module:

"oscommerceIndia.com said:

One of our clients was facing issue with the FedEx Module in osCommerce.

The site was running on Godaddy Hosting.

We disabled Fedex. Then in Fedex1.php, we changed the part that references godaddy to:

curl_setopt($ch, CURLOPT_HTTPPROXYTUNNEL, TRUE);
curl_setopt($ch, CURLOPT_PROXYTYPE, CURLPROXY_HTTP);
curl_setopt($ch, CURLOPT_PROXY, “http://proxy.shr.secureserver.net:3128″);

Then enable the module again, and did a rate request, and that’s it.

(from http://oscommerceindia.com/help/2008/01/17...odaddy-hosting/ )

All of this is a bit over my head - I'm hoping someone could give me a hint as to where I should insert these lines of code. The only "curl_setopt" reference I could find was in the ship_canadapost_ajax.php file (under Case 8, around line 481) but when I inserted these lines immediately after it, it didn't seem to do anything. I keep getting the same error, "Cannot reach Canada Post Server. You may refresh this page..."

Please help! I need to get our site online and this module is the last barrier before we can launch it. Thanks again insaini for all your hard work and suggestions...

Chris

#29   insaini

insaini
  • Members
  • 208 posts
  • Real Name:Jesse B.
  • Gender:Male
  • Location:Brampton, Ontario

Posted 04 May 2008 - 01:18 PM

View Postchrisjclay, on May 4 2008, 04:23 AM, said:

Hey there,

I did a fresh install of the module and it's still not working on GoDaddy, but it turns out I'll need to add a few lines of code re: a proxy server to get it to work:
GoDaddy posted some sample code here:

http://help.godaddy.com/article/289

Similarly, someone in an older Canada Post mod used the proxy server to get things working on GoDaddy:
He posted the fix here...

http://www.oscommerce.com/community/contributions,391

which seems to add an extra few lines of code to the mod:

//Next 2 lines for GoDaddy.com hosting accounts.
curl_setopt ($ch, CURLOPT_PROXYTYPE, CURLPROXY_HTTP);
curl_setopt($ch, CURLOPT_PROXY, "http://proxy.shr.secureserver.net:3128");

Similarly, someone posted a similar fix for the Fed Ex module:
(from http://oscommerceindia.com/help/2008/01/17...odaddy-hosting/ )

All of this is a bit over my head - I'm hoping someone could give me a hint as to where I should insert these lines of code. The only "curl_setopt" reference I could find was in the ship_canadapost_ajax.php file (under Case 8, around line 481) but when I inserted these lines immediately after it, it didn't seem to do anything. I keep getting the same error, "Cannot reach Canada Post Server. You may refresh this page..."

Please help! I need to get our site online and this module is the last barrier before we can launch it. Thanks again insaini for all your hard work and suggestions...

Chris

Chris, you can add those lines to the ship_canadapost.php function file.. located in /admin/includes/functions .. its the first function at the top of the file...

#30   insaini

insaini
  • Members
  • 208 posts
  • Real Name:Jesse B.
  • Gender:Male
  • Location:Brampton, Ontario

Posted 04 May 2008 - 01:21 PM

View Postpueblito, on May 3 2008, 10:50 AM, said:

Thanks J. Got that far, but I still get:
Failed check /../admin/includes/languages/english/ship_canadapost.php at line 17
This most likely means that Canada Post has changed their user interface. You need to
update your Canada Post Automatic Shipping Labels module
when I try to submit from the admin screen.


Hmm.. well thats just the general error .. at what step are you getting this error?  I have just created a label yesterday and it went through fine..  

also you could have a curl problem  in that your curl version may not be the proper version, or you curl was not built with openssl (this is required for https access) .. you can be sure its the openssl problem if it wont get past step 2 (since it cant log you in via https) ..

J

#31   pueblito

pueblito
  • Members
  • 19 posts
  • Real Name:Pueblito.ca

Posted 04 May 2008 - 04:41 PM

View Postinsaini, on May 4 2008, 09:21 AM, said:

Hmm.. well thats just the general error .. at what step are you getting this error?  I have just created a label yesterday and it went through fine..  

also you could have a curl problem  in that your curl version may not be the proper version, or you curl was not built with openssl (this is required for https access) .. you can be sure its the openssl problem if it wont get past step 2 (since it cant log you in via https) ..

J

Here is what server info shows for cURL/OpenSSL:

Curl
cURL support enabled
cURL Information libcurl/7.18.0 OpenSSL/0.9.8b zlib/1.2.3 libidn/0.6.5

And it is definitely the second step that is causing the problem.

Hmm.... any ideas?

Thanks!

#32   insaini

insaini
  • Members
  • 208 posts
  • Real Name:Jesse B.
  • Gender:Male
  • Location:Brampton, Ontario

Posted 04 May 2008 - 09:48 PM

View Postpueblito, on May 4 2008, 12:41 PM, said:

Here is what server info shows for cURL/OpenSSL:

Curl
cURL support enabled
cURL Information libcurl/7.18.0 OpenSSL/0.9.8b zlib/1.2.3 libidn/0.6.5

And it is definitely the second step that is causing the problem.

Hmm.... any ideas?

Thanks!

I believe curl also has to be built with libssh

cURL Information libcurl/7.18.0 OpenSSL/0.9.7a zlib/1.2.1.2 libssh2/0.18

#33   pueblito

pueblito
  • Members
  • 19 posts
  • Real Name:Pueblito.ca

Posted 05 May 2008 - 12:50 AM

View Postpueblito, on May 4 2008, 12:41 PM, said:

Here is what server info shows for cURL/OpenSSL:

Curl
cURL support enabled
cURL Information libcurl/7.18.0 OpenSSL/0.9.8b zlib/1.2.3 libidn/0.6.5

And it is definitely the second step that is causing the problem.

Hmm.... any ideas?

Thanks!

Thanks Jesse. I will speak with the host, they've generally been responsive, let's see if they can fix it up. I'll post back with a follow up.

Cheers,

Ivan

#34   chrisjclay

chrisjclay
  • Members
  • 10 posts
  • Real Name:chris clay

Posted 05 May 2008 - 01:52 AM

View Postinsaini, on May 4 2008, 06:18 AM, said:

Chris, you can add those lines to the ship_canadapost.php function file.. located in /admin/includes/functions .. its the first function at the top of the file...

Argh... Still doesn't work. I have one last idea though... "darkknightenterprises" posted another fix here:

http://addons.oscommerce.com/info/391 ... called "A complete work around if you can not get your hosting provider to open port 30000!!!"

He suggests uploading a file, cpcall.php, to a friend's server which then "makes the call to the canadapost server from there and the cURL call from the canadapost.php file calls to it."

I uploaded the included test file to a friend's server and it successfully connected to Canada Post :) So far so good... Now I'm just not sure how to modify the curl call on my own osCommerce site so it calls to the cpcall.php file on my friend's site. Here are the contents of the cpcall.php file that is now sitting on my friend's hosting account (not at GoDaddy!):

<?php
	function sendToHost($data)
	{
		set_time_limit(5);
		$ch = curl_init("sellonline.canadapost.ca:30000");
		curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
		curl_setopt($ch, CURLOPT_URL, "sellonline.canadapost.ca:30000");
		curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
		curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
		curl_setopt($ch, CURLOPT_DNS_CACHE_TIMEOUT, 2678400);
		curl_setopt( $ch, CURLOPT_HEADER, 0 );
		curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
		curl_setopt( $ch, CURLOPT_RETURNTRANSFER, 1 );
		$buf = "";
		$buf = curl_exec($ch);
		curl_close( $ch );
		if($buf == "")
		{
			$buf = "<?xml version=\"1.0\" ?><eparcel><error><statusMessage>Cannot reach Canada Post Server. ".
				   "You may refresh this page (Press F5) to try again.</statusMessage></error></eparcel>"; 
		}
	return $buf;
	}

	$data = $_REQUEST['XMLRequest'];
	$response = sendToHost($strXML);
	echo $response;
?>

I assume this is meant to take the place of the function called "function cp_setup" in the file admin>includes>functions>ship_canadapost.php. Any ideas on what I need to do to force the Canada Post module to use the function "sendToHost" that's sitting on my friend's server (in the cpcall.php file) instead of the one found in ship_canadapost.php? If I can figure that out, I think everything else will fall into place. I highlighted in red the part of  darkknightenterprise's instructions  that don't make sense to me:

"darknightenterprises" said:

IF you have someone that has a web server online or an account with a web hosting company that has port 30000 open, just upload the test.php to that server and open it in your browser.

If port 30000 is open, you will see an XML response from the Canadapost server. If you don't, then you know that port 30000 is NOT open. IF it is then all you have to do is upload the cpcall.php to a directory on that server then put the URL to the cpcall.php in place of "http://www.yourserver.com/cpcall.php" and your CPC username in place of "CPC_DEMO_XML" in the canadapost.php file that upload it to your osCommerce store in catalog/includes/modules/shipping/canadapost.php and everything should be working perfectly.

I know that it is working because this is how I had to do it to get it to work and I am using this technique now. Good luck getting everything working for your store and may you prosper well in your endevors.

Chris

Edited by chrisjclay, 05 May 2008 - 01:52 AM.


#35   insaini

insaini
  • Members
  • 208 posts
  • Real Name:Jesse B.
  • Gender:Male
  • Location:Brampton, Ontario

Posted 05 May 2008 - 10:49 AM

View Postchrisjclay, on May 4 2008, 09:52 PM, said:

Argh... Still doesn't work. I have one last idea though... "darkknightenterprises" posted another fix here:

http://addons.oscommerce.com/info/391 ... called "A complete work around if you can not get your hosting provider to open port 30000!!!"

He suggests uploading a file, cpcall.php, to a friend's server which then "makes the call to the canadapost server from there and the cURL call from the canadapost.php file calls to it."

I uploaded the included test file to a friend's server and it successfully connected to Canada Post :) So far so good... Now I'm just not sure how to modify the curl call on my own osCommerce site so it calls to the cpcall.php file on my friend's site. Here are the contents of the cpcall.php file that is now sitting on my friend's hosting account (not at GoDaddy!):

<?php
	function sendToHost($data)
	{
		set_time_limit(5);
		$ch = curl_init("sellonline.canadapost.ca:30000");
		curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
		curl_setopt($ch, CURLOPT_URL, "sellonline.canadapost.ca:30000");
		curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
		curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
		curl_setopt($ch, CURLOPT_DNS_CACHE_TIMEOUT, 2678400);
		curl_setopt( $ch, CURLOPT_HEADER, 0 );
		curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
		curl_setopt( $ch, CURLOPT_RETURNTRANSFER, 1 );
		$buf = "";
		$buf = curl_exec($ch);
		curl_close( $ch );
		if($buf == "")
		{
			$buf = "<?xml version=\"1.0\" ?><eparcel><error><statusMessage>Cannot reach Canada Post Server. ".
				   "You may refresh this page (Press F5) to try again.</statusMessage></error></eparcel>"; 
		}
	return $buf;
	}

	$data = $_REQUEST['XMLRequest'];
	$response = sendToHost($strXML);
	echo $response;
?>

I assume this is meant to take the place of the function called "function cp_setup" in the file admin>includes>functions>ship_canadapost.php. Any ideas on what I need to do to force the Canada Post module to use the function "sendToHost" that's sitting on my friend's server (in the cpcall.php file) instead of the one found in ship_canadapost.php? If I can figure that out, I think everything else will fall into place. I highlighted in red the part of  darkknightenterprise's instructions  that don't make sense to me:
Chris


chris.. you would have to place the call to this file in step one of the ajax file.. ship_canadapost_ajax.php  load that up.. look at the first step (initialization) .. it has to go before anything else.. However. I do see a problem because the above url is sellonline (which is fine for shipping quotes) but the urls required for label generation are different..

now what I think is.. if you had a problem using godaddy's proxy server .. you may not have set it up correctly.. the automated labels software does not use port 30000 (only the shipping module does) .. be sure to modify the version of the shipping module ive included in the package with the modifications you just posted above (you may need to use your friends server for the shipping module via that php file you posted above) .. however for automated labels.. the proxy settings should have been enough..

one last thing.. when and what errors are you getting?  are you getting errors from the shipping module?  or the automated labels software?

J

#36   chrisjclay

chrisjclay
  • Members
  • 10 posts
  • Real Name:chris clay

Posted 06 May 2008 - 05:58 AM

View Postinsaini, on May 5 2008, 03:49 AM, said:

chris.. you would have to place the call to this file in step one of the ajax file.. ship_canadapost_ajax.php  load that up.. look at the first step (initialization) .. it has to go before anything else.. However. I do see a problem because the above url is sellonline (which is fine for shipping quotes) but the urls required for label generation are different..

To be honest I don't know how to place the call to my friend's external server. I see case1 in ship_canadapost_ajax.php but I'm not sure how to proceed from there :(  I know some basic php but my skills are limited and this is over my head... I'm not sure which line of code I should be pasting the link to callcp.php. Right above case one I see several URLS - am I meant to replace one of them? i.e. Should I replace the url in the line that reads "define ('ORIGINAL REFERRER'...)" ? ... or the one in that reads "define (SSO, 'https://....')" ... or should I be looking at a different line of code?

View Postinsaini, on May 5 2008, 03:49 AM, said:

however for automated labels.. the proxy settings should have been enough.. one last thing.. when and what errors are you getting?  are you getting errors from the shipping module?  or the automated labels software?

The error appears whenever I try making a test purchase. Each time I get to the "Delivery information" step during Checkout, I get this error:

"osCommerce error" said:

Cannot reach Canada Post Server. You may refresh this page (Press F5 on your keyboard) to try again.
If you prefer to use canadapost as your shipping method, please contact the The Tale of the Whale via Email.

I've actually never tried generating a label before - I didn't think I'd be able to until I successfully placed a test order. I just tried now for the first time and received this error:

"osCommerce error" said:

Progress Indicator
Step 1. Initialized.
Step 2. Error: Failed check in /home/content/t/a/l/taleofthewhale/html/store/catalog/admin/includes/languages/english/ship_canadapost.php at line 9. This most likely means that Canada Post has changed their user interface. You need to update your Canada Post Automatic Shipping Labels module.

At any rate, I'm not too worried about the labels - it would be a nice bonus if they worked, but by far the most important thing right now is getting shipping prices from Canada Post during the checkout process.

I thought I'd try switching to GatorHost to see if I have better luck, but they seem to have placed my order on hold because I used Paypal for my payment and am outside the US (I'm in Canada). Anyway, if you have any more suggestions I'd appreciate them and would try them... Otherwise I'll get my order straightened out at GatorHost and try setting up the site there.

Regards,
Chris

#37   insaini

insaini
  • Members
  • 208 posts
  • Real Name:Jesse B.
  • Gender:Male
  • Location:Brampton, Ontario

Posted 06 May 2008 - 10:29 AM

View Postchrisjclay, on May 6 2008, 01:58 AM, said:

To be honest I don't know how to place the call to my friend's external server. I see case1 in ship_canadapost_ajax.php but I'm not sure how to proceed from there :(  I know some basic php but my skills are limited and this is over my head... I'm not sure which line of code I should be pasting the link to callcp.php. Right above case one I see several URLS - am I meant to replace one of them? i.e. Should I replace the url in the line that reads "define ('ORIGINAL REFERRER'...)" ? ... or the one in that reads "define (SSO, 'https://....')" ... or should I be looking at a different line of code?
The error appears whenever I try making a test purchase. Each time I get to the "Delivery information" step during Checkout, I get this error:
I've actually never tried generating a label before - I didn't think I'd be able to until I successfully placed a test order. I just tried now for the first time and received this error:
At any rate, I'm not too worried about the labels - it would be a nice bonus if they worked, but by far the most important thing right now is getting shipping prices from Canada Post during the checkout process.

I thought I'd try switching to GatorHost to see if I have better luck, but they seem to have placed my order on hold because I used Paypal for my payment and am outside the US (I'm in Canada). Anyway, if you have any more suggestions I'd appreciate them and would try them... Otherwise I'll get my order straightened out at GatorHost and try setting up the site there.

Regards,
Chris


Ahh ok so the changes you need to make are to the shipping module.. not the shipping labels files.. ship_canadapost* files are all for automated labels... the shipping module (only 1 file) is located at catalog/includes/modules/shipping/canadapost.php  this is file you need to modify.. and you can modify it like the others have to connect to a friends server .. im sure you can find the modifications in one of the other canadapost shipping threads..

J

#38   chrisjclay

chrisjclay
  • Members
  • 10 posts
  • Real Name:chris clay

Posted 09 May 2008 - 07:00 AM

I ended up transferring the site from GoDaddy to HostGator... I just installed the Canada Post Shipping Module 4.1 and it works :)  Woohoo! I should have done this much sooner. Thanks again insaini for all your suggestions :)

#39   KKT

KKT
  • Members
  • 9 posts
  • Real Name:Keaton

Posted 11 May 2008 - 01:15 AM

Hey, I just had my programmer install this module for me.

He finished and said there's a few details I had to fill in myself, mainly this section (
Configure Canada Post Shipping Module 4.1) in the install.htm directions:

4. Go to your Canada Post module (admin package -> Modules -> Shipping -> Canada Post) and set your Venture One Login, Pass, Credit Card Alias for Label creation payments, and your Credit Card CVV (DO NOT STORE CREDIT CARD INFORMATION ON YOUR WEBSITE, LET CANADAPOST MAINTAIN IT FOR YOU!)

I'm familiar with the VentureOne program b/c I have a card for another small business I operate. However, I don't understand what this credit card information is referring to. I have to have credit card info stored somewhere? I don't recall needing a credit card to set up my VentureOne account.

Can someone please explain? Thanks.

#40   insaini

insaini
  • Members
  • 208 posts
  • Real Name:Jesse B.
  • Gender:Male
  • Location:Brampton, Ontario

Posted 11 May 2008 - 08:14 PM

View PostKKT, on May 10 2008, 09:15 PM, said:

Hey, I just had my programmer install this module for me.

He finished and said there's a few details I had to fill in myself, mainly this section (
Configure Canada Post Shipping Module 4.1) in the install.htm directions:

4. Go to your Canada Post module (admin package -> Modules -> Shipping -> Canada Post) and set your Venture One Login, Pass, Credit Card Alias for Label creation payments, and your Credit Card CVV (DO NOT STORE CREDIT CARD INFORMATION ON YOUR WEBSITE, LET CANADAPOST MAINTAIN IT FOR YOU!)

I'm familiar with the VentureOne program b/c I have a card for another small business I operate. However, I don't understand what this credit card information is referring to. I have to have credit card info stored somewhere? I don't recall needing a credit card to set up my VentureOne account.

Can someone please explain? Thanks.

The Credit Card is for when you use automated labels.. if you dont plan on using the automated labels functionality via the admin panel.. then you dont have to worry about it..  if however you intend on using automated labels.. then you need to log into the canadapost shipping application via www.canadapost.com once you login.. store your credit card info at www.canadapost.com  once you have it stored there.. automated labels can use it with a reference.. which is the first and last 4 digits with 8 asterisks (*) in the middle .. ie 4324********2343 ... then all you need to pass to canadapost is this reference and the CVV which takes care of the payment for automated labels processing..  

again you only need to store this information if you intend on using automated labels...

J