Skip to content

Instantly share code, notes, and snippets.

@jaywilliams
Created September 25, 2009 17:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jaywilliams/193693 to your computer and use it in GitHub Desktop.
Save jaywilliams/193693 to your computer and use it in GitHub Desktop.
diff a/includes/modules/shipping/perweightunit.php b/includes/modules/shipping/perweightunit.php
94c94
< global $order, $shipping_weight;
---
> global $order, $shipping_weight, $shipping_num_boxes;
101,102c101,102
< 'cost' => (MODULE_SHIPPING_PERWEIGHTUNIT_COST * $total_weight_units)
< + MODULE_SHIPPING_PERWEIGHTUNIT_HANDLING)));
---
> 'cost' => ((MODULE_SHIPPING_PERWEIGHTUNIT_COST * $total_weight_units)
> + MODULE_SHIPPING_PERWEIGHTUNIT_HANDLING)*$shipping_num_boxes)));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment