Forums / Addon Shipping Modules / Canada Post module

Canada Post module

Views: 188,607

Results 61 to 80 of 481
28 May 2010, 7:11 AM
#61
australian_caching avatar

australian_caching

Zen Follower

Join Date:
Feb 2010
Posts:
106
Plugin Contributions:
0

Canada Post module

DISREGARD THIS, GOT IT WORKING, forgot to add post code, not needed for quotes in Australia, just found out it is needed for quotes to USA and Canada, so it was working all along.

My bad, how embarrassment.

Australian Caching:

I have the latest version of the cart (installed last week)
I have the latest version of the CP add on, installed this week.

I have 2 websites, https://www.australiancaching.com/store, old version of CP works fine.

My other store, https://www.nacaching.com/store is on the same server, like a subdomain, I don't even get rate quotes for CP, so I know it is not a problem with the port, as the other is working.

My CPC_ etc is set for the other store, and when I phoned CP, they confirmed that regardless of the store, it will work (my settings in CPC are linked to the Australian caching site, they say it makes no difference, either will work)

All settings in new store seem fine, just nothing showing up.

I would have just set up a new customer number with CP, but get the error "phone number in ust with another account" and wouldn't let me go further (I am not getting a new phone to add an account to CP)

Any guess as to why it won't work?

Guy

8 Jun 2010, 4:12 PM
#62
shinmai avatar

shinmai

New Zenner

Join Date:
Aug 2009
Location:
Canada
Posts:
42
Plugin Contributions:
0

Re: Canada Post module

Hi there,
I am little confused with installing the CP shipping module...
I have upgraded to ZenCart 1.3.9d (from v1.3.9c) yesterday. I just installed v1.3.9c not long ago and I was just learning how to get around so none of files were customized so I printed out changelog files and simply copied to my site.

Now, I am trying to install CP Shipping module and I got confused. I downloaded the file named canada_post_shipping_module_1-3-8c (I think this is the latest one available?!) and came with instrustion doc says "v1.3.7. and I uploaded new files listed but I noticed some of the listed files need to be overwritten.

I just copied the same files yesterday (namely
admin/includes/modules/product/collect_info.php
includes/classes/shopping_cart.php )
in order to upgrade to v.1.3.9 so I am not sure if I can upload the same name and overwrite these files... :blink:

Also, other files:
admin/includes/modules/copy_to_confirm.php
admin/includes/modules/update_product.php
admin/includes/modules/product/preview_info.php (if I copy this file, file size will be from 9,501(1.3.9d) to 9,319 (1.3.8c??).

Can I just override to my 1.3.9d files???
Any help for newbie will be greatly appreciated.

8 Jun 2010, 5:00 PM
#63
royal avatar

royal

Zen Follower

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

Re: Canada Post module

Hi there,
I am little confused with installing the CP shipping module...
I have upgraded to ZenCart 1.3.9d (from v1.3.9c) yesterday. I just installed v1.3.9c not long ago and I was just learning how to get around so none of files were customized so I printed out changelog files and simply copied to my site.

Now, I am trying to install CP Shipping module and I got confused. I downloaded the file named canada_post_shipping_module_1-3-8c (I think this is the latest one available?!) and came with instrustion doc says "v1.3.7. and I uploaded new files listed but I noticed some of the listed files need to be overwritten.

I just copied the same files yesterday (namely
admin/includes/modules/product/collect_info.php
includes/classes/shopping_cart.php )
in order to upgrade to v.1.3.9 so I am not sure if I can upload the same name and overwrite these files...

Also, other files:
admin/includes/modules/copy_to_confirm.php
admin/includes/modules/update_product.php
admin/includes/modules/product/preview_info.php (if I copy this file, file size will be from 9,501(1.3.9d) to 9,319 (1.3.8c??).

Can I just override to my 1.3.9d files???
Any help for newbie will be greatly appreciated.

Hello Shinmai,

You can overwrite these files. But by doing so. You will not have the benefit of the new updates from 1.3.9d.

Used WinMerge to merge your files. Check here: https://www.zen-cart.com/tutorials/index.php?article=138

WinMerge: http://winmerge.org/downloads/

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

8 Jun 2010, 8:21 PM
#64
shinmai avatar

shinmai

New Zenner

Join Date:
Aug 2009
Location:
Canada
Posts:
42
Plugin Contributions:
0

Re: Canada Post module

Thanks for the reply and links! Since I am newbie and don't comprehentd PHP files well, it might be beyond my capability to merge the files correctly but I will give it a try :smile:

Thanks again.

9 Jun 2010, 1:15 PM
#65
shinmai avatar

shinmai

New Zenner

Join Date:
Aug 2009
Location:
Canada
Posts:
42
Plugin Contributions:
0

Re: Canada Post module

Well, I tried to look through files and compare but I am just giving up since ...collect_info.php and ...shopping_cart.php in 1.3.9d has less codes than CP mod files and I don't want to blindly erase some codes because I don't know how PHP code works...:frusty:

I just hope that CP mod will be updated to 1.3.9d very soon - sigh -
For now I will just overwrite CP mod hope I won't running into problems.

9 Jun 2010, 2:12 PM
#66
royal avatar

royal

Zen Follower

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

Re: Canada Post module

Shinmai:

Well, I tried to look through files and compare but I am just giving up since ...collect_info.php and ...shopping_cart.php in 1.3.9d has less codes than CP mod files and I don't want to blindly erase some codes because I don't know how PHP code works...:frusty:

I just hope that CP mod will be updated to 1.3.9d very soon - sigh -
For now I will just overwrite CP mod hope I won't running into problems.

Hello Shinmai,

You can test this Canada Post merge update for 1.3.9d. Let me know if it works for you.

Please backup your site first before installing this mod.

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

9 Jun 2010, 6:44 PM
#68
shinmai avatar

shinmai

New Zenner

Join Date:
Aug 2009
Location:
Canada
Posts:
42
Plugin Contributions:
0

Re: Canada Post module

Wow! just Wow!
Thank you so much for posting the updated files. I had to pinch myself when I saw your post!

As a newbie, I am trying to learn basics everyday (PHP, MySQL, CSS and how ZenCart work) but it is so overwhelming and easily lost in every new customization step. This really helps me to move forward.

Thanks again for your help! :smile:

9 Jun 2010, 7:05 PM
#69
royal avatar

royal

Zen Follower

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

Re: Canada Post module

Hello Shinmai,

You are very welcome. :smile: Let me know if you have any problems.

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

9 Jun 2010, 7:09 PM
#70
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Canada Post module

Royal, please submit your update to the Addons area.

.
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.

10 Jun 2010, 3:09 AM
#71
royal avatar

royal

Zen Follower

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

Re: Canada Post module

Royal, please submit your update to the Addons area.

Update submit to the Addons area. It might take a week or more for approval.

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

10 Jun 2010, 1:55 PM
#72
royal avatar

royal

Zen Follower

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

Re: Canada Post module

Royal:

Hello Shinmai,

You can test this Canada Post merge update for 1.3.9d. Let me know if it works for you.

Please backup your site first before installing this mod.

Here you go: Beta Canada Post 1.3.9d


Hello Shinmai,

Check attachment for updated files.


Updated in v1.3.9d.


Optional

From thread: http://www.zen-cart.com/forum/showthread.php?p=887795


Make kgs and cm the default:

In the collect_info.php files for that addon you'll see these lines near the top:

//added Canada Post start
   		           'products_weight_type' => '',
   		           'products_dim_type' => '',

Change that to:

//added Canada Post start
			           'products_weight_type' => SYSTEM_WEIGHT_UNITS,
			           'products_dim_type' => SYSTEM_DIMENSION_UNITS,

Already updated in v1.3.9d.


Optional

For those who do not want (1 box(es) to be shipped) to show.

Go to includes/modules/shipping/canadapost.php.

Look for: ```
'module' => $this->title . ' (' . $this->boxCount . MODULE_SHIPPING_PACKAGING_RESULTS . ')');


Change to: ```
'module' => $this->title . ' <!--(' . $this->boxCount . MODULE_SHIPPING_PACKAGING_RESULTS . ')-->');

Updated in v1.3.9d.


Optional

Look for: USA Lettermail: no estimated delivery date

You can change it to anything you like: U.S.A Letter-post, up to 2 weeks

Look for: International Lettermail: no estimated delivery date

You can change it to anything you like: INTL Letter-post, up to 2 weeks

Go to includes/modules/shipping/canadapost.php.

case 'US':
			{
				$table_cost = split("[:,]" , constant('MODULE_SHIPPING_CANADAPOST_LETTERMAIL_USA'));
				$lettermail_service = "USA Lettermail: no estimated delivery date";
				break;
			}
		      	default:
		   	{
				$table_cost = split("[:,]" , constant('MODULE_SHIPPING_CANADAPOST_LETTERMAIL_INTL')); //Use overseas rate if not Canada or US
				$lettermail_service = "International Lettermail: no estimated delivery date";
	      		}

Change to:

case 'US':
			{
				$table_cost = split("[:,]" , constant('MODULE_SHIPPING_CANADAPOST_LETTERMAIL_USA'));
				$lettermail_service = "U.S.A Letter-post, up to 2 weeks";
				break;
			}
		      	default:
		   	{
				$table_cost = split("[:,]" , constant('MODULE_SHIPPING_CANADAPOST_LETTERMAIL_INTL')); //Use overseas rate if not Canada or US
				$lettermail_service = "INTL Letter-post, up to 2 weeks";
	      		}

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

10 Jun 2010, 4:31 PM
#73
soxophoneplayer avatar

soxophoneplayer

Totally Zenned

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

Re: Canada Post module

Canada Post advised me that Lettermail rates to US and International from Canada MUST be a paper letter/document in order to qualify for the rate, regardless of whether the dimensions qualify. :(

10 Jun 2010, 5:30 PM
#74
royal avatar

royal

Zen Follower

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

Re: Canada Post module

soxophoneplayer:

Canada Post advised me that Lettermail rates to US and International from Canada MUST be a paper letter/document in order to qualify for the rate, regardless of whether the dimensions qualify. :(

Hello soxophoneplayer,

I use Light Packet through PayPal to ship my items to USA and International.

http://canadapost.ca/cpo/mc/personal/productsservices/atoz/parcelproducts.jsf

Light Packet™ - USA (delivery in as few as 4 days)*
A specialized product for sending very small and lightweight items (less than 500g) such as CDs and DVDs to the USA for an economical price.

Light Packet™ - International (delivery in as few as 4 days)*
A specialized product for sending very small and lightweight items (less than 500g) such as CDs and DVDs to international destinations for an economical price.

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

10 Jun 2010, 5:57 PM
#75
royal avatar

royal

Zen Follower

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

Re: Canada Post module

Light Packet cost a bit more than letter-post.

Light Packet USA: http://www.canadapost.ca/tools/pg/prices/CPusa-e-05-e.pdf

Light Packet International: http://www.canadapost.ca/tools/pg/prices/CPinter-e-04.pdf

includes/modules/shipping/canadapost.php.

Canada Post do not have module for Light Packet as yet.

I set "USA Lettermail: no estimated delivery date" to "Light Packet USA, up to 2 weeks" and "International Lettermail: no estimated delivery date" to "Light Packet INTL, up to 2 weeks."

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

15 Jun 2010, 11:51 PM
#76
soxophoneplayer avatar

soxophoneplayer

Totally Zenned

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

Re: Canada Post module

Vanishing Lettermail

Here's a little snag I hit and figured out.... in case someone else hits the same snag - I'm rebuilding by web site, local host, in 1.3.9d and have my mods copied over, including Canada Post - which worked except that Lettermail quotes weren't showing up even though letter mail was enabled in admin/config/modules/shipping/Canada Post.

I thought I must have mucked up a merge, so went through all the files and found nadda.

Then I checked admin/config/shipping-packaging - and there was the problem - there is a default Tare % set, which was pushing my product weights over the limit for lettermail.

I set the tare rates to zero, and all is well in the world.

16 Jun 2010, 5:05 AM
#77
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Canada Post 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.

22 Jun 2010, 4:33 PM
#78
highlander avatar

highlander

Zen Follower

Join Date:
May 2007
Posts:
125
Plugin Contributions:
0

Re: Canada Post module

I have zencart 1.3.8 and the canada post module installed. it all works fine. What I need help with is this:

It shows the customer, an estimated arrival date for their package(s). I'd like to remove this because I only ship once or twice a week and it assumes it's going out that day. Anybody know what I need to edit or change? Because I haven't been able to figure it out.:(

25 Jun 2010, 6:42 PM
#79
royal avatar

royal

Zen Follower

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

Re: Canada Post module

Hello Highlander,

Information from this thread: http://www.zen-cart.com/forum/showthread.php?p=841468

highlander:

I have zencart 1.3.8 and the canada post module installed. it all works fine. What I need help with is this:

It shows the customer, an estimated arrival date for their package(s). I'd like to remove this because I only ship once or twice a week and it assumes it's going out that day. Anybody know what I need to edit or change? Because I haven't been able to figure it out.:(

Change info in: includes/modules/shipping/canadapost.php

DrByte:

You can remove the delivery date by editing the module code directly.
Near the bottom of the file is this section of code:$aryProducts[$index] = array( $name . ', ' . $deliveryDate => $rate);Change that to:```
$aryProducts[$index] = array(
$name => $rate);

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

26 Jun 2010, 4:32 AM
#80
zotrik avatar

zotrik

New Zenner

Join Date:
Jun 2010
Posts:
1
Plugin Contributions:
0

Re: Canada Post module

Hi,
I know I'll look dumb, but once I unzipped the file, I put it in my localhost server.

Where am I supposed to log into the admin section?
I tried all the php paths that are into the files; the only thing that are happening are illegal access or nothing at all.

Could you maybe post a longer tutorial on how are we supposed to use that module?

P.S. I'm sorry about asking that because I read all the posts here and no one seemed to have any trouble with that.. I just really need to make it work.

Thanks!