Zen Cart Logo
Forums / Addon Shipping Modules / Canada post shipping module

Canada post shipping module

Locked

Views: 13,323

Results 21 to 40 of 41
This thread is locked. New replies are disabled.
10 Jul 2007, 8:50 PM
#21
hipctech avatar

hipctech

Totally Zenned

Join Date:
Oct 2004
Location:
Surrey, BC, Canada
Posts:
1,466
Plugin Contributions:
1

Canada post shipping module

numinix:

They are in the configuration already!

If you plan on using this module I highly recommend installing my update which will allow you more versatility with handling fees since most payment providers charge a fee on the entire amount including the shipping charge.

Well, they are not in my admin configurations... In the version that I have, V1.3.7c, these settings are only in the files.
Which one is your version?

10 Jul 2007, 9:18 PM
#22
drbyte avatar

drbyte

Sensei

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

Re: Canada post shipping module

numinix:

most payment providers charge a fee on the entire amount including the shipping charge.

Can you please elaborate on what you mean by this statement?

11 Jul 2007, 1:45 AM
#23
numinix avatar

numinix

Totally Zenned

Join Date:
Apr 2007
Location:
Vancouver, Canada
Posts:
1,567
Plugin Contributions:
58

Re: Canada post shipping module

HiPCTech:

Well, they are not in my admin configurations... In the version that I have, V1.3.7c, these settings are only in the files.
Which one is your version?

Hmm, I must be mistaken then. Does Canada Post itself accept both units? If so, there should be an option to switch to/from metric from within the config.

Can you please elaborate on what you mean by this statement?

No problem, if a customer purchases an item for $10.00 and shipping price of $5.00, the total to be processed by the payment processor would be $15.00. If the fee were 3%, this would equal $0.45 with $0.15 generated from the shipping charge. Now, let's say you charge a flat handling fee of $1.00 in order to cover the processing fees. If a customers shipping ends up being over $33.33, then you will take a loss on the additional processing fee which has now become higher than your flat rate handling fee.

On the other end of the spectrum, if you charge a $5.00 handling fee to cover higher shipping costs, when a customer purchases an item that should only cost $5.00 to ship and now has to pay $10.00, you may now lose the sale.

My updated version allows the user to use either/both the flat rate or the percentage handling fee.

11 Jul 2007, 2:59 PM
#24
hipctech avatar

hipctech

Totally Zenned

Join Date:
Oct 2004
Location:
Surrey, BC, Canada
Posts:
1,466
Plugin Contributions:
1

Re: Canada post shipping module

numinix:

Hmm, I must be mistaken then. Does Canada Post itself accept both units? If so, there should be an option to switch to/from metric from within the config.

Are you talking about the CanadaPost configurations or the ZC configurations? I myself have not seen it that Canada Post accepts both units; although, I haven't looked into it too much either. I thought that the module would convert it. I can't use kg for the the products because I have other shipping modules and they would not know that I have it set up to kg, at least I don't think so. What do you think?

God bless.

11 Jul 2007, 5:53 PM
#25
numinix avatar

numinix

Totally Zenned

Join Date:
Apr 2007
Location:
Vancouver, Canada
Posts:
1,567
Plugin Contributions:
58

Re: Canada post shipping module

I have found that since my store is set to kg/cm by default, if I enter a product using lb/in, they will appear in kg/cm but with the exact same numerical digits as I had input for lb/in. So, I input all my products in kg/cm to avoid this issue. ZC itself should be converting units just as it does for currencies. Hopefully someone will fix this for you.

11 Jul 2007, 5:56 PM
#26
numinix avatar

numinix

Totally Zenned

Join Date:
Apr 2007
Location:
Vancouver, Canada
Posts:
1,567
Plugin Contributions:
58

Re: Canada post shipping module

Actually, it's pretty simple to do, you can just do the conversions yourself within the script and when I get a chance I'll do the update to allow selection from the admin.

Apparently, Zen Cart doesn't actually store the weights in any unit. Instead, the number is sent to the module which then handles it using it's default measurement. So, if your store is in lb/in, you will need to divide the weight by approx 2.2 to get the kg and multiply by 2.5 to get the cm.

12 Jul 2007, 4:29 AM
#27
hipctech avatar

hipctech

Totally Zenned

Join Date:
Oct 2004
Location:
Surrey, BC, Canada
Posts:
1,466
Plugin Contributions:
1

Re: Canada post shipping module

numinix:

Actually, it's pretty simple to do, you can just do the conversions yourself within the script and when I get a chance I'll do the update to allow selection from the admin.

Apparently, Zen Cart doesn't actually store the weights in any unit. Instead, the number is sent to the module which then handles it using it's default measurement. So, if your store is in lb/in, you will need to divide the weight by approx 2.2 to get the kg and multiply by 2.5 to get the cm.

That is, I think, the problem, that ZC doesn't store the units in any format. So I could have a shipping module to think that the weight is in lbs and another that thinks that it is in kgs...
This should be added to the future wishlist. There should be at least a general configuration setting that sets what the general units are.

Kim, DrByte of Ajeh what do you think of this?

12 Jul 2007, 4:41 AM
#28
drbyte avatar

drbyte

Sensei

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

Re: Canada post shipping module

HiPCTech:

This should be added to the future wishlist. There should be at least a general configuration setting that sets what the general units are.

Kim, DrByte of Ajeh what do you think of this?

There are no plans to do this. If your particular needs require otherwise, you are welcome to write custom code to support your needs.
In the case of your CP shipping module, it would seem the custom coding requirement is minimal.

12 Jul 2007, 7:16 AM
#29
numinix avatar

numinix

Totally Zenned

Join Date:
Apr 2007
Location:
Vancouver, Canada
Posts:
1,567
Plugin Contributions:
58

Re: Canada post shipping module

I've taken a closer look at the Canada Post module and it appears that if any products were entered using lbs/cm, it automatically converts them to kg before sending to Canada Post...

I'd recommend setting up a test website with an exact same product but with the opposite unit of measure and see if it returns different results. I'll upload version 1.3.7d sometime tomorrow. It can be downloaded from my website in the meantime.

17 Jul 2007, 4:30 PM
#30
blackguard avatar

blackguard

New Zenner

Join Date:
Feb 2006
Posts:
38
Plugin Contributions:
0

Re: Canada post shipping module

Is it possible to have the module automatically use the user selected language to communicate with the canada post server? I.e customers who make their order using french language get responses in french from canadapost, those who use the english language get responses in english.

I'm going to have to create the language/french files for the module and I'll gladly provide them to whoever needs them.

17 Jul 2007, 11:22 PM
#31
highlander avatar

highlander

Zen Follower

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

Re: Canada post shipping module

Can someone confirm clarify or correct what has been said above for me? If I enter info into zen cart for a product as inches....it will convert it to centimeters before sending to Canada post?

18 Jul 2007, 12:05 AM
#32
numinix avatar

numinix

Totally Zenned

Join Date:
Apr 2007
Location:
Vancouver, Canada
Posts:
1,567
Plugin Contributions:
58

Re: Canada post shipping module

Yes

If you enter lbs, it will convert it to kg and then send it to canada post.

18 Jul 2007, 4:35 PM
#33
fantasygoat avatar

fantasygoat

New Zenner

Join Date:
Apr 2006
Posts:
10
Plugin Contributions:
0

Re: Canada post shipping module

Will the newer module work with an older version of Zen Cart? I have 1.3.0.2 and it is so heavily modified by someone who doesn't work for me anymore that upgrading is out of the question for the next few months, but it doesn't look like the existing shipping module works anymore.

18 Jul 2007, 6:53 PM
#34
numinix avatar

numinix

Totally Zenned

Join Date:
Apr 2007
Location:
Vancouver, Canada
Posts:
1,567
Plugin Contributions:
58

Re: Canada post shipping module

Try installing 1.3.0.2 on a test site and then install the Canada Post module.

The core modifications can be quickly merged into your existing files.

19 Jul 2007, 5:55 PM
#35
blackguard avatar

blackguard

New Zenner

Join Date:
Feb 2006
Posts:
38
Plugin Contributions:
0

Re: Canada post shipping module

I'm afraid my question got squashed out on the bottom of the previous page, hence will ask it again here :

How can I get the shipping module to use the user selected language value to communicate with the canada post server instead of a default value entered in the admin section?

I know a bit of php so any quick pointer would be greatly appreciated!

19 Jul 2007, 7:52 PM
#36
drbyte avatar

drbyte

Sensei

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

Re: Canada post shipping module

Blackguard:

I'm afraid my question got squashed out on the bottom of the previous page, hence will ask it again here :

How can I get the shipping module to use the user selected language value to communicate with the canada post server instead of a default value entered in the admin section?

I know a bit of php so any quick pointer would be greatly appreciated!

/includes/modules/shipping/canadapost.php
around line 79 you have:

      $this->language = MODULE_SHIPPING_CANADAPOST_LANGUAGE;
```change that to this:
  $this->language = (in_array(strtolower($_SESSION['languages_code']), array('en', 'fr'))) ? strtolower($_SESSION['languages_code']) :MODULE_SHIPPING_CANADAPOST_LANGUAGE;
13 Aug 2007, 8:32 PM
#37
blackguard avatar

blackguard

New Zenner

Join Date:
Feb 2006
Posts:
38
Plugin Contributions:
0

Re: Canada post shipping module

Thank you! I confirm this works perfectly.

3 Sep 2007, 12:32 AM
#38
grizak avatar

grizak

New Zenner

Join Date:
Sep 2007
Posts:
5
Plugin Contributions:
0

Re: Canada post shipping module

Hi,

I've setup the Canada Post Module, but I can't seem to find where I can enter the dimensions (length, width, height) of my products. Everything else seems to be working. My site is sending the correct weight to and from Canada Post and itis getting prices back from Canada Post, but when I create a new product (or edit an existing one) I don't see any options to add the dimensional data.

I've double checking that I have copied the files over, I have also checked the database to make sure the new data fields are present.

What am I missing?

Thanks

Grizak

3 Sep 2007, 4:35 AM
#39
grizak avatar

grizak

New Zenner

Join Date:
Sep 2007
Posts:
5
Plugin Contributions:
0

Re: Canada post shipping module

Hi,

I figured it out. My files were messed up! Seems to be working now...

Grizak

8 Sep 2007, 3:18 AM
#40
zapisto avatar

zapisto

Zen Follower

Join Date:
Aug 2005
Posts:
163
Plugin Contributions:
0

Re: Canada post shipping module

fantasygoat:

Will the newer module work with an older version of Zen Cart? I have 1.3.0.2 and it is so heavily modified by someone who doesn't work for me anymore that upgrading is out of the question for the next few months, but it doesn't look like the existing shipping module works anymore.

yes work fine
and did you check for the new server from canadapost ?