Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Airborne Express Quotes using ShipIT XML API v1.401


Guest

Recommended Posts

I just installed the v1.401 modules, with the fix for non-responsiveness. When "Checkout" is selected, there is still an issue with no response from my webserver, and everything just "hangs" on the shopping cart screen.

 

My web server is linux, so according to the module info the ssl verification should be skipped. Any ideas on how to fix this?

Link to comment
Share on other sites

Did some research on using curl on the linux shared web server we use. Managed to fix my own problem.

 

In catalog\includes\modules\shipping, comment out all lines starting with

// begin cURL engine & execute the request

through

$airborne_response .= "$value";

}

}

 

Added:

 

$URL="https://eCommerce.airborne.com/$api";

if (isset($_GET["site"])) { $URL = $_GET["site"]; }

$ch = curl_init();

//echo "URL = $URL <br>\n";

curl_setopt($ch, CURLOPT_VERBOSE, 1);

//curl_setopt ($ch, CURLOPT_HTTPPROXYTUNNEL, TRUE);

curl_setopt ($ch, CURLOPT_PROXYTYPE, CURLPROXY_HTTP);

curl_setopt ($ch, CURLOPT_PROXY,"http://THE IP ADDRESS ASSIGNED BY YOUR HOSTING PROVIER");

curl_setopt ($ch, CURLOPT_SSL_VERIFYPEER, FALSE);

curl_setopt ($ch, CURLOPT_URL, $URL);

curl_setopt ($ch, CURLOPT_TIMEOUT, 120);

curl_setopt($ch, CURLOPT_HEADER, 0);

curl_setopt($ch, CURLOPT_POST, 1);

curl_setopt($ch, CURLOPT_POSTFIELDS, "$request");

curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);

$airborne_response = curl_exec ($ch);

curl_close ($ch);

 

This works for me, it may not for anyone else.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...