File: ZENCART-1.3.8a-EN-12112007\includes\modules\shipping\perweightunit.php

The module gives false results when total weight > SHIPPING_MAX_WEIGHT and the shipping is splited into many boxes.
Suggest to multiply:
Code:
  function quote($method = '') {
    global $order, $shipping_weight;
   ...............
    $total_weight_units = $shipping_num_boxes * $shipping_weight;
    ...............
And modify the NOTE:
Code:
  function install() {
    global $db;
    ...............
    $db->Execute("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Shipping Cost per Unit', 'MODULE_SHIPPING_PERWEIGHTUNIT_COST', '1', 'NOTE: When using this Shipping Module be sure to check the Tare settings in the Shipping/Packaging and adjust the settings on Small and Large packages which will add to the price as well.<br /><br />The shipping cost will be used to determin shipping charges based on: Product Quantity * Units (products_weight) * Cost per Unit - in an order that uses this shipping method.', '6', '0', now())");
    ...............