This is a discussion on UPS XML Rates and Services v1.0 within the New osCommerce Contributions forums, part of the osCommerce 2.2 Forums category; A quick fix for weight displyed as 0 if total weight is less than 1 (lbs/kg). This is because of ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| ||||
| ||||
| A quick fix for weight displyed as 0 if total weight is less than 1 (lbs/kg). This is because of rounding thats being done without any decimal digit. In modules->shipping->upsxml.php Find $upsQuote = $this->_upsGetQuote(); 2 lines below there are 2 statements starting with $this->quotes = array('id' => $this->code, within these lines is code snippet round($totalWeight,0) Change the 0 to number of decimal digits to round to round($totalWeight,2) This will display weight rounded to 2 decimal places like 0.20 etc. Same insturctions in the uploaded file More...
__________________ Michael Sasek osCMax Developer
|
| Thread Tools | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| UPS XML Rates and Services v1.0 | michael_s | New osCommerce Contributions | 0 | 09-22-2007 02:17 PM |
| UPS XML Rates and Services v1.0 | michael_s | New osCommerce Contributions | 1 | 08-22-2007 12:19 PM |
| UPS XML Rates and Services v1.0 | michael_s | New osCommerce Contributions | 0 | 08-07-2007 06:41 PM |
| UPS XML Rates and Services v1.0 | michael_s | New osCommerce Contributions | 0 | 06-21-2007 02:01 PM |
| UPS XML Rates and Services v1.0 | michael_s | New osCommerce Contributions | 0 | 05-24-2007 11:01 AM |