PDA

View Full Version : UPS XML Rates and Services v1.0



michael_s
06-21-2007, 02:01 PM
Ok folks, Now if you install this module and then your page does not load at all you need to go to the includes/modules/shipping/upsxml.php file and go to line 98 and change the 0 to a 1.

This will fix your problem and let me tell you it is not noted anywhere and is a headache to find without docs.

So here it is a simple fix that will get the system working if you do not have CurL compiled. Some of you might think you do but do this anyway before pulling your hair out!

Example of the code:
// to enable logging of just the errors, do as above but call the file upsxml_error.log
$this->ups_error_file = '/home/lotiocom/public_html/upsxml_error.log';
// when cURL is not compiled into PHP (Windows users, some Linux users)
// you can set the next variable to "1" and then exec(curl -d $xmlRequest, $xmlResponse)
// will be used
$this->use_exec = '1';

=============================
NO FILES TO DOWNLOAD JUST READ ABOVE!

More... (http://www.oscommerce.com/community/contributions,1323)