Sensei
- Join Date:
- Jan 2004
- Posts:
- 63,513
- Plugin Contributions:
- 176
Views: 12,979
Sensei
New Zenner
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.
New Zenner
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!
Zen Follower
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/catalogOr 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...
New Zenner
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.
Zen Follower
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?
New Zenner
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?
Zen Follower
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.
New Zenner
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:
Totally Zenned
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.
New Zenner
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.
New Zenner
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
Zen Follower
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
Zen Follower
Where can I found the module installation files?
Tell staff why this post should be reviewed.