.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole
Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.
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 www.xxxx.com/store/estimatingservice.wsdl). Should this be put somewhere else? Cant figure out what else could be wrong.
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!
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.
ok, open the includes/modules/shipping/purolator.php file.
line 119 or so, change the line to read:
Haven't tested it, but that should certainly work.PHP Code:
$shipping_weight = ceil($shipping_weight);
Let me know how it goes, and I'll put it in my list of things to test for the new version.
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:
Replace with:$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.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
Thanks Luxifer for your work on the module![]()
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.
Bookmarks