Zen Cart Logo
Forums / Addon Shipping Modules / Custom purolator module won't allow checkout to continue to page 2

Custom purolator module won't allow checkout to continue to page 2

Views: 12,979

Results 41 to 54 of 54
10 Nov 2011, 7:39 PM
#42
giantfan avatar

giantfan

New Zenner

Join Date:
Nov 2011
Posts:
12
Plugin Contributions:
0

Re: Custom purolator module won't allow checkout to continue to page 2

Need some advice if possible.

I ahve the module installed, my account from Puro, my production key & password (verified and activated by Puro) yet I'm getting the:

"An unknown error occured with the Purolator shipping calculations" error message.

My Zen cart is setup in '/store/' on my website. I put the wsdl file in there (eg so it's path is https://www.xxxx.com/store/estimatingservice.wsdl). Should this be put somewhere else? Cant figure out what else could be wrong.

11 Nov 2011, 12:39 AM
#43
giantfan avatar

giantfan

New Zenner

Join Date:
Nov 2011
Posts:
12
Plugin Contributions:
0

Re: Custom purolator module won't allow checkout to continue to page 2

RESOLVED.

Believe the problem was that I was using some heavier shipments (my product is normally). But had the Purolator module setting at PuroBox or PuroPak. Believe the weight I was using was likely exceeding the packaging limits and hence returning an error.

Changed to 'custom packaging' and BAM off to the races.

Purolator Web Development was great once I was able to reach the appropriate folks. And once they understood that there was a module in existence understood the reasoning to skid the dev key processes.

Thanks again Luxifer for an excellent module!

8 Feb 2012, 9:45 PM
#44
abcisme avatar

abcisme

Zen Follower

Join Date:
Jun 2006
Posts:
298
Plugin Contributions:
0

Re: Custom purolator module won't allow checkout to continue to page 2

kobra:

Catalog "root" is the base area where you have your ZenCart installed

It can be
/htdocs
/public_html
or if installed into a directory under the main root you ZenCart root becomes
/htdocs/catalog
/public_html/shop
/public_html/catalog

Or what ever you have named the directory
For some reason, the only way I could get this to work was to put the WSDL file in my site root, not my store root. Just wanted to share in case anyone else was banging their head against the wall...

8 Feb 2012, 9:48 PM
#45
luxifer avatar

luxifer

New Zenner

Join Date:
Mar 2009
Posts:
57
Plugin Contributions:
0

Re: Custom purolator module won't allow checkout to continue to page 2

Yes, I made it in the site root so that if you have multiple stores, they can all share the same file.

And yes, I will get this updated as soon as I work out all my other 1.5 module issues.

16 Feb 2012, 8:23 PM
#46
abcisme avatar

abcisme

Zen Follower

Join Date:
Jun 2006
Posts:
298
Plugin Contributions:
0

Re: Custom purolator module won't allow checkout to continue to page 2

Danger:

Ok, it's working... mostly. Now if I try to order anything that weighs under half a kg. I still get the error *"An unknown error occured with the Purolator shipping calculations." *

However anything half a kg and above seems to work just fine.
I'm having this minimum weight issue. I set package tare to add weight, but it still won't give me a quote. Is there any way to make it round up to a minimum weight?

16 Feb 2012, 8:40 PM
#47
luxifer avatar

luxifer

New Zenner

Join Date:
Mar 2009
Posts:
57
Plugin Contributions:
0

Re: Custom purolator module won't allow checkout to continue to page 2

ok, open the includes/modules/shipping/purolator.php file.
line 119 or so, change the line to read:
```php
$shipping_weight = ceil($shipping_weight);


Haven't tested it, but that should certainly work.
Let me know how it goes, and I'll put it in my list of things to test for the new version.

> **abcisme:**
>
> I'm having this minimum weight issue.  I set package tare to add weight, but it still won't give me a quote.  Is there any way to make it round up to a minimum weight?
16 Feb 2012, 8:44 PM
#48
abcisme avatar

abcisme

Zen Follower

Join Date:
Jun 2006
Posts:
298
Plugin Contributions:
0

Re: Custom purolator module won't allow checkout to continue to page 2

Luxifer:

ok, open the includes/modules/shipping/purolator.php file.
line 119 or so, change the line to read:
```php
$shipping_weight = ceil($shipping_weight);

> 
> Haven't tested it, but that should certainly work.
> Let me know how it goes, and I'll put it in my list of things to test for the new version.
Changed this line:         

$shipping_weight = round($shipping_weight, 2);


To:

$shipping_weight = ceil($shipping_weight);


Still nothing.
13 Mar 2012, 5:36 PM
#49
brizzo avatar

brizzo

New Zenner

Join Date:
Mar 2012
Posts:
5
Plugin Contributions:
0

Re: Custom purolator module won't allow checkout to continue to page 2

Hey guys,

I was recently asked to solve this shipping weight problem. Here's the solution:

Edit purolator.php

Around Line 300,

Find this line:

$this->totalWeight = round($this->totalWeight); //rounds up to the nearest interger

Replace with:

if($this->totalWeight > 0 && $this->totalWeight < 0.5) { $this->totalWeight = 0.5; } // minimum charge fix, will not quote lowest rate if item has no weight
$this->totalWeight = round($this->totalWeight); //rounds up to the nearest interger

if $this->totalWeight was less than 0.5, it would round to 0. With it equal to 0.5, it rounds to 1.

:clap:

Thanks Luxifer for your work on the module :cool:

19 Jun 2012, 5:58 PM
#50
jackie_taferner avatar

jackie_taferner

Totally Zenned

Join Date:
Jun 2009
Location:
Orange County, California
Posts:
547
Plugin Contributions:
3

Re: Custom purolator module won't allow checkout to continue to page 2

giantfan, thanks for your efforts in building this module! Any plans to get it packaged up and posted in the Plugins section? I'm happy to help gather up the files and make them plugin-ready.

11 Apr 2013, 3:24 PM
#51
robadm avatar

robadm

New Zenner

Join Date:
Apr 2012
Posts:
8
Plugin Contributions:
0

Re: Custom purolator module won't allow checkout to continue to page 2

Thank you Luxifer for the module. I'm using it (development phase at Purolator) with ZenCart V.5.
Two questions:
1-Can it be used for shipping worldwide? It only works for USA-Canada as I can see.
2-Weights on my database are in kg. but are assumed lb. by the module. Can be changed?
Thank you again.

22 Mar 2014, 3:49 AM
#52
jwaynehinkle avatar

jwaynehinkle

New Zenner

Join Date:
Aug 2013
Location:
United States
Posts:
73
Plugin Contributions:
0

Re: Custom purolator module won't allow checkout to continue to page 2

Does anyone know if you can use this mod on php5.3 or 5.4, additionally I noticed the nuSOAP files are no where near the most current do these need to be updated to the most current? and then can you use development keys/password/account to test it before installing on live server? and last but not least I noticed this error after installing it the way it is

[21-Mar-2014 23:37:50 America/New_York] PHP Warning: Creating default object from empty value in /includes/modules/shipping/lib/nusoap.php on line 55

10 May 2017, 7:39 PM
#53
shopville avatar

shopville

Zen Follower

Join Date:
Aug 2012
Posts:
331
Plugin Contributions:
0

Re: Custom purolator module won't allow checkout to continue to page 2

Could not find an up to date thread.
Is there any current purolator modules? if not where can I find the latest to start from there

19 Jul 2017, 7:38 PM
#54
shopville avatar

shopville

Zen Follower

Join Date:
Aug 2012
Posts:
331
Plugin Contributions:
0

Re: Custom purolator module won't allow checkout to continue to page 2

Where can I found the module installation files?