Forums / Built-in Shipping and Payment Modules / Canadapost module and french

Canadapost module and french

Locked

Views: 1,266

Results 1 to 2 of 2
This thread is locked. New replies are disabled.
8 May 2008, 3:07 AM
#1
royjs avatar

royjs

New Zenner

Join Date:
Mar 2005
Posts:
4
Plugin Contributions:
0

Canadapost module and french

Hi,

I'm having a problem with the canadapost module when the cart is set to french but everything works fine when using english.

My problem is that once in a while, around 1 time out of 5 I would say, I get stuck at step 1 of the checkout process.
The canadapost module shows fine, I select one of the shipping method then click continue but the page just refreshes and the number of boxes doubles.
E.g. If i have 1 item in my shopping cart I go to checkout, the module says 1 box(es) to be shipped. When I choose a canadapost shipping option and click continue the page reloads and the module says 2 box(es) to be shipped and the price also changes.

I haven't found a french translation of this module yet so for now I'm using the english files that I'm gonna translate later.

Any ideas ?

Thanks a lot

9 May 2008, 1:58 AM
#2
royjs avatar

royjs

New Zenner

Join Date:
Mar 2005
Posts:
4
Plugin Contributions:
0

Re: Canadapost module and french

I did some more testing...

I forced the canadapost module to always use english instead of the current language in canadapost.php.

I replaced this line :
$this->language = (in_array(strtolower($_SESSION['languages_code']), array('en', 'fr'))) ? strtolower($_SESSION['languages_code']) :MODULE_SHIPPING_CANADAPOST_LANGUAGE;

by this line :
$this->language = 'en';

After this modification, the module worked fine so the problem is not the zen cart language but only the canadapost module language.

I thought it might help someone help me.

Does someone have an idea on what might be causing this ? or is someone else experiencing the same issue ?

Thanks again