Jump to content


  • Content count

  • Joined

  • Last visited

Profile Information

  • Real Name
    chris clay
  1. I ended up transferring the site from GoDaddy to HostGator... I just installed the Canada Post Shipping Module 4.1 and it works :) Woohoo! I should have done this much sooner. Thanks again insaini for all your suggestions :)
  2. To be honest I don't know how to place the call to my friend's external server. I see case1 in ship_canadapost_ajax.php but I'm not sure how to proceed from there :( I know some basic php but my skills are limited and this is over my head... I'm not sure which line of code I should be pasting the link to callcp.php. Right above case one I see several URLS - am I meant to replace one of them? i.e. Should I replace the url in the line that reads "define ('ORIGINAL REFERRER'...)" ? ... or the one in that reads "define (SSO, 'https://....')" ... or should I be looking at a different line of code? The error appears whenever I try making a test purchase. Each time I get to the "Delivery information" step during Checkout, I get this error: I've actually never tried generating a label before - I didn't think I'd be able to until I successfully placed a test order. I just tried now for the first time and received this error: At any rate, I'm not too worried about the labels - it would be a nice bonus if they worked, but by far the most important thing right now is getting shipping prices from Canada Post during the checkout process. I thought I'd try switching to GatorHost to see if I have better luck, but they seem to have placed my order on hold because I used Paypal for my payment and am outside the US (I'm in Canada). Anyway, if you have any more suggestions I'd appreciate them and would try them... Otherwise I'll get my order straightened out at GatorHost and try setting up the site there. Regards, Chris
  3. Argh... Still doesn't work. I have one last idea though... "darkknightenterprises" posted another fix here: http://addons.oscommerce.com/info/391 ... called "A complete work around if you can not get your hosting provider to open port 30000!!!" He suggests uploading a file, cpcall.php, to a friend's server which then "makes the call to the canadapost server from there and the cURL call from the canadapost.php file calls to it." I uploaded the included test file to a friend's server and it successfully connected to Canada Post :) So far so good... Now I'm just not sure how to modify the curl call on my own osCommerce site so it calls to the cpcall.php file on my friend's site. Here are the contents of the cpcall.php file that is now sitting on my friend's hosting account (not at GoDaddy!): <?php function sendToHost($data) { set_time_limit(5); $ch = curl_init("sellonline.canadapost.ca:30000"); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_URL, "sellonline.canadapost.ca:30000"); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0); curl_setopt($ch, CURLOPT_DNS_CACHE_TIMEOUT, 2678400); curl_setopt( $ch, CURLOPT_HEADER, 0 ); curl_setopt($ch, CURLOPT_POSTFIELDS, $data); curl_setopt( $ch, CURLOPT_RETURNTRANSFER, 1 ); $buf = ""; $buf = curl_exec($ch); curl_close( $ch ); if($buf == "") { $buf = "<?xml version=\"1.0\" ?><eparcel><error><statusMessage>Cannot reach Canada Post Server. ". "You may refresh this page (Press F5) to try again.</statusMessage></error></eparcel>"; } return $buf; } $data = $_REQUEST['XMLRequest']; $response = sendToHost($strXML); echo $response; ?> I assume this is meant to take the place of the function called "function cp_setup" in the file admin>includes>functions>ship_canadapost.php. Any ideas on what I need to do to force the Canada Post module to use the function "sendToHost" that's sitting on my friend's server (in the cpcall.php file) instead of the one found in ship_canadapost.php? If I can figure that out, I think everything else will fall into place. I highlighted in red the part of darkknightenterprise's instructions that don't make sense to me: Chris
  4. Hey there, I did a fresh install of the module and it's still not working on GoDaddy, but it turns out I'll need to add a few lines of code re: a proxy server to get it to work: GoDaddy posted some sample code here: http://help.godaddy.com/article/289 Similarly, someone in an older Canada Post mod used the proxy server to get things working on GoDaddy: He posted the fix here... http://www.oscommerce.com/community/contributions,391 which seems to add an extra few lines of code to the mod: //Next 2 lines for GoDaddy.com hosting accounts. curl_setopt ($ch, CURLOPT_PROXYTYPE, CURLPROXY_HTTP); curl_setopt($ch, CURLOPT_PROXY, "http://proxy.shr.secureserver.net:3128"); Similarly, someone posted a similar fix for the Fed Ex module: (from http://oscommerceindia.com/help/2008/01/17...odaddy-hosting/ ) All of this is a bit over my head - I'm hoping someone could give me a hint as to where I should insert these lines of code. The only "curl_setopt" reference I could find was in the ship_canadapost_ajax.php file (under Case 8, around line 481) but when I inserted these lines immediately after it, it didn't seem to do anything. I keep getting the same error, "Cannot reach Canada Post Server. You may refresh this page..." Please help! I need to get our site online and this module is the last barrier before we can launch it. Thanks again insaini for all your hard work and suggestions... Chris
  5. chrisjclay

    "No Address Provided" with Website Payments Standard Add-on

    [oops, double post]
  6. Looks like it may work after all then :) Here's what I found under "server info": I'll experiment some more this evening. Chris
  7. Just to follow up, here's the word back from GoDaddy re: cURL support:
  8. I'm wondering if anyone has been able to get this working on a GoDaddy shared hosting account yet? According to the installation instructions, I've tried contacting GoDaddy to see how I can replace libcurl-7.12 with 7.18 but haven't heard back yet... Any help would be most appreciated! Chris P.S. Thanks for all your hard work :)
  9. Hey everyone, I installed the "PayPal Website Payments Standard" Add-on that's available here: http://addons.oscommerce.com/info/5655 I'm testing it in Paypal's Sandbox and so far everything seems perfect except the shipping address doesn't seem to be transferred from osCommerce to Paypal. When I view the test orders, they all say: Obviously we want to make sure our orders are covered by the seller protection program. Does anyone know how to ensure this add-on sends the shipping address to Paypal along with the rest of the order details? Thanks in advance! Chris Clay