Hi! I'm using zencart version 1.3.8a with the Canpar Module. I can't seem to get the module to calculate anything. The price is always 0.00$. Hopefuly someone can tell me what to do!!![]()
Hi! I'm using zencart version 1.3.8a with the Canpar Module. I can't seem to get the module to calculate anything. The price is always 0.00$. Hopefuly someone can tell me what to do!!![]()
I have a feeling it may not be going to the right address to find it's information... Does/did anyone else have this problem?
Hello Moonlilly
Not sure if I can help solve the problem, but I can make a suggestion.
1) I had the same issue when I was using Canpar with another cart I will leave unanmed. LOL
The issue with it was that it was using the incorrect URL to obtain pricing quotes.
Look in store/includes/modules/shipping/canpar.php
This is the correct line and URL: $body = file_get_contents('http://www.canpar.com/CanparRateXML/BaseRateXML.jsp?' . $request);
Just confirm it is correct.
2) The original Canpar module only gave quotes for Canada locations and gave $0.00 for USA locations. Or maybe it's the other way around.
The module was never written for use with both countries. Also note, that Canpar doesn't ship to some USA locations, so that may cause $0.00 pricing.
I have edited the store/includes/modules/shipping/canpar.php to work in both countries with the help of other members here.
I will attach the canpar.php file for you to use and copy it into the location I gave above.
I have also found another problem with the Canpar module.
It allows you to markup the shipping fee, but it doesn't seem to be working.
I am going to post this problem and see if someone can help fix it.
Has there been any headway on this module at all?
It works, but the markup feature doesn't work.
I decided not to use it because the quotes seem lower than canadapost and UPS. I use these 2 for shipping quotes and if canpar is cheaper, I use it and keep the little bit of extra I might get.
Just a note: If you are using live quotes from one of the shipping companies and then actually shipping with someone else you could lose your access privileges. Not to mention, as a consumer, if I chose UPS and someone else delivered my package I might be upset.canadapost and UPS
Please do not PM for support issues: a private solution doesn't benefit the community.
Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.
I have never had the chance to do it. Canadapost is the most selected service and always the cheapest and easiest.
Canpar mod quotes prices $3-5 less then it should be, so I would lose money using this mod.
I would suggest to anyone not to use it.
I was having the same problem with my Canpar module. The shipping calculation had been working for over a year and then all of a sudden stopped working and would only calculate zero.
Long story short, the solution for me was to replace the following code in the canpar.php file (in modules/shipping)
Replace these two lines:
$srcFSA = substr(strtoupper(SHIPPING_ORIGIN_ZIP), 0, 3);
$desFSA = substr(strtoupper($order->delivery['postcode']), 0, 3);
With this:
$srcFSA = substr(str_replace(" ", "", strtoupper(SHIPPING_ORIGIN_ZIP)), 0, 6);
$desFSA = substr(str_replace(" ", "", strtoupper($order->delivery['postcode'])), 0, 6);
Explanation -- Canpar recently changed it so they need all six postal code digits sent when calculating shipping (instead of just 3 before)
Hope this solves it for you as well!!
Mine was working until like you said, they went to all 6 chacracter postal codes.
My problem is that the quotes are much lower than what the price is when I go to ship it.
Seems to be 25-30% lower than the counter price.
I tried using the mark up feature, but it doesn't seem to work.
I have the same problem. I really wish I could figure out the mechanics of how pricing is calculated. I can make a url string out of the code and submit it, and I get the correct number back, so it's not the canpar module that's the problem. Somewhere that number is changed.
Also there's the price adjustments not working, which is just insult to injury at this point.
I'm willing to modify code, and I will even provide good code back to the community, but I need to know where to look for it. I don't have the time to go through all of zencart. someone point me in the right direction please.