Hi all!
I am frustrated over this issue. I dont know if this is the best place to
post this. I am trying to use a custon cgi script for shipping calculations.
The example in the ver. 7 pro documentation, does not work as is. I had to
add:
print "Content-type: text/html\n\n";
just to get the server not to error out. In addition i created the following
script just to test it. this is it:
#---------------------------------------------------------------------
#!/usr/bin/perl
print "Content-type: text/html\n\n";
$total=3;
print "status=pass\n";
print "option_count=3\n";
print "s1option=API%20Ground\n";
printf ("s1price=%0.2f\n",1.00*$total);
print "s2option=API%20Next%20Week\n";
printf ("s2price=%0.2f\n",2.00*$total);
print "s3option=API%20Tomorrow\n";
printf ("s3price=%0.2f\n",4.00*$total);
#------------------------------------------------------------------------
This fulfills the specs as outlined in the documentation found at:
http://www.shopsite.com/help/7.1/en-US/ ... pping.html
(navigate to Shipping API Specification)
In fact my script is a cut and paste from shopsites spec page example. But I
get a response from the shopping cart:
Error
--------------------------------------------------------------------------------
ShopSite detected that the information passed from the Custom Shipping
Add-on is incomplete and cannot be processed.
--------------------------------------------------------------------------------
Can anyone here help me?
If so thanx up front!
JerryC