Forums / Addon Shipping Modules / Canpar mod not working all of a sudden

Canpar mod not working all of a sudden

Locked

Views: 1,398

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
30 Jul 2009, 9:38 PM
#1
mgmoore avatar

mgmoore

New Zenner

Join Date:
Oct 2008
Posts:
13
Plugin Contributions:
0

Canpar mod not working all of a sudden

My Canpar module has started calculating $0.00 for all orders. This was not happening a week ago and now I can't seem to fix it. Anyone able to help?

I'm using Zen Cart 1.3.8 with the Canpar module (has worked for over a year).

31 Jul 2009, 11:49 AM
#2
baraz avatar

baraz

New Zenner

Join Date:
Jul 2009
Posts:
2
Plugin Contributions:
0

Re: Canpar mod not working all of a sudden

I am having the same issue. I'm pretty new to zen cart though. I notice that the module says its for version 1.3.7 of zen cart, not sure if that is the issue or not.

31 Jul 2009, 1:07 PM
#3
sonofschwa avatar

sonofschwa

New Zenner

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

Re: Canpar mod not working all of a sudden

I've noticed this as well, am working on it ~

$body = ereg_replace('<CanparRate.">', '<CanparRate>',file_get_contents("http://www.canpar.com/CanparRateXML/BaseRateXML.jsp?service=1&quantity=1&unit=L&origin=k1p5m8&dest=k1p5m8&cod=0&weight=35&put=0&xc=0&dec=0"));

this is where i'm at right now, and is working for my test script, but need to integrate this into the canpar.php page with the
$request variable in there....

seems the canpar page is giving extra info after <CanparRate that needs to be stripped.
Any PHP programmers out there? :)

will post when working solution found, just noticed this yesterday when somebody got free shipping!

31 Jul 2009, 2:23 PM
#4
sonofschwa avatar

sonofschwa

New Zenner

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

Re: Canpar mod not working all of a sudden

scratch that ~ I was overcomplicating things. It seems that the postal codes are the issue...

just replace 'origin=' . $srcFSA,
'dest=' . $desFSA,

with
'origin=' . $srcFSA .'1a1',
'dest=' . $desFSA .'1a1',

(in the canpar.php file)
and it works fine!

31 Jul 2009, 4:27 PM
#5
baraz avatar

baraz

New Zenner

Join Date:
Jul 2009
Posts:
2
Plugin Contributions:
0

Re: Canpar mod not working all of a sudden

PERFECT!!

Thanks a bunch!