woothemes/woocommerce — pull request #4618 by leewillis77 (2014-02-02 22:38:34+00:00)
Title: Add user ID to shipping packages

The attached small patch adds the current user ID to the shipping packages by default. This is useful for shipping plugins that may offer different pricing models for different users (Based on role, customer loyalty etc. etc.).

It does also mean that the shipping cache will be hit less often than currently, but potentially more accurately.

Note: This can be achieved by filtering the packages via the filter 'woocommerce_cart_shipping_packages' - so I'm not 100% convinced this belongs in WC core - but thought I'd propose it for consideration.