Latest News: (loading..)

greasemonkey

Members
  • Content count

    1,087
  • Joined

  • Last visited

  • Days Won

    23

greasemonkey last won the day on March 26

greasemonkey had the most liked content!

About greasemonkey

Profile Information

  • Real Name
    Scott
  • Gender
    Male
  1. @Druid6900 The difference is I don't use dimensional support - therefore there is no length, width & height (in the test request I posted on the CP developers forum I manual added dimensions to the file) ... I would presume the weight is the same however. Removing this set of rounding has worked for me.... if ((float)$weight < 1.0) { $weight = 1; } else { $weight = round($weight, 3); That said, I would definately test it by removing if($this->unit_weight == 'LBS') { //change to kilograms $weight = round($weight/2.2,3); } if($this->unit_length == 'IN') { //change to centimeters $width = round($width * 2.54,1); $height = round($height * 2.54,1); $length = round($length * 2.54,1); }
  2. @Druid6900 ok.... this is the last an only line that rounds the weight. First, in your admin make sure there is nothing in the "tare" config.... re-test if there was a "tare" weight... And then try to remove all rounding like.... $this->item_weight[$index] = $weight;
  3. @Druid6900 can you test this for the weight issue? I just want to change the default from LBS and IN to KG and CM (as it should be for a Canadian based module). And a question - are you using EDGE for GOLD... and do you know if are using Change // for those who will undoubtedly forget or not know how to run the configuration_shipping.sql // we will set the default to pounds (LBS) and inches (IN) $this->unit_weight = 'LBS'; } if (defined('SHIPPING_UNIT_LENGTH')) { $this->unit_length = SHIPPING_UNIT_LENGTH; } else { $this->unit_length = 'IN'; } To // for those who will undoubtedly forget or not know how to run the configuration_shipping.sql // we will set the default to pounds (KG) and inches (CM) $this->unit_weight = 'KG'; } if (defined('SHIPPING_UNIT_LENGTH')) { $this->unit_length = SHIPPING_UNIT_LENGTH; } else { $this->unit_length = 'CM'; }
  4. Ok looks like this is added with the configuration_shipping.sql for dimensional support.... How is your defind? LBS or KG? IN or CM?
  5. @Druid6900 ok.. this issue with the width... For some reason we have (lines 412 to 414) $weight = $this->item_weight[$index]; $price = round($this->item_price[$index],2); $width = $this->item_weight[$index]; Notice line 414 $width = is referencing item_weight This should be $weight = $this->item_weight[$index]; $price = round($this->item_price[$index],2); $width = $this->item_width[$index]; Still looking at the weight issue... trying to find where LBS and IN defined in admin (I don't think it is). if($this->unit_weight == 'LBS') { //change to kilograms $weight = round($weight/2.2,3); } if($this->unit_length == 'IN') { //change to centimeters $width = round($width * 2.54,1); $height = round($height * 2.54,1); $length = round($length * 2.54,1); }
  6. @Druid6900 Can you PM me your /includes/modules/shipping/canadapost.php file....
  7. Just getting use to the new look/feel. Not sure anyone else cares.... but I would love to have a "back to top" widget
  8. @druid6900 ok... i think I have found the issue with the weight - on US it is rounding values less than 1kg to 1 here: // Add box or item to shipment list. Round weights to 1 decimal places. if ((float)$weight < 1.0) { $weight = 1; } else { $weight = round($weight, 3); } // Add box or item to shipment list. Round weights to 1 decimal places. if ((float)$weight < 1.0) { $weight = 1; } else { $weight = round($weight, 3); } From the added comment it seems the author was intending to round the weight figure - which I don't believe is necessary (unless you are entering weights with multiple decimals places.... Try deleting the above lines and retest (works for me).
  9. Ok @@Druid6900 have you follow the instructions in the included file install_dimensional_support.txt? Including the DB changes to your configuration table? The instructions are very detailed....
  10. @@Druid6900 if the tables are the exact same name..., yes they may be overwritten. Let me look a little closer... I'll get back soon.
  11. @@Druid6900 Again, I'm not that familiar with this addon - you may want to find the support thread for the UPS XML - there are probably more people with dimensional support install questions there... That said, if you have dimensions in your database already.... then you shouldn't have too. So the questions becomes... where did the tables with dimensions that you have come from? If you have installed another addon that adds dimensions to your database then the code would probably be pointing to the wrong table.
  12. @@Druid6900 ok it looks like we have the issue (not the solution however). Your request is not sending dimensions - I presume you have made some changes to your site for dimensional support? The original author of this module did build this feature in... but did not include instructions on how to use it.... and it is not something i have ever used or are familiar with. From the code in the module: if (($this->dimensions_support>0) && ($width>0) && ($height>0) && ($length>0)) { $xmlRequest .= "<dimensions><length>$length</length> <width>$width</width> <height>$height</height> </dimensions>"; Basically says... if dimensional support is "there (greater than 0)" then add the the dimensions.... So... you need to find out why that is not working.... If I recall the original author used the code from this module http://addons.oscommerce.com/info/7848 And there are instructions on how to install dimensional support.
  13. @@Druid6900 I did some checking this morning... and replied to your post at the CP developers forum. I found some slight differences in the quotes (but very minor). We should probably keep this convo there (at CP).... until such time we can confirm any issue you are having is with the module (at not CP). I will watch for their reply's. Keep in mind... CP will require both the request and the reply to help. You need to un-comment both pieces of code (as suggested above) and then... the best way to see the request and reply is from "view source" in your browser. If you have a specific quote that you can replicate where there is a huge difference as suggested above... Give them both the request and reply. So far in my testing all seems ok...
  14. @@Druid6900 can you PM me the zip in California you are working with? I'll do some checking.. Also what province are you in?
  15. @@Druid6900 looks like this is all solved. For everyone else - Small Packet Air and Tracked Package to the USA require the Insurance option in the admin to be set to false.