stephenmcd/cartridge — pull request #136 by jaywink (2013-10-20 19:03:47+00:00)
Title: New setting SHOP_HIDE_BILLING_SHIPPING_FIELDS

Some shops do not necessarily need to ship anything - so address fields can be totally unnecessary bloat on the form. For example virtual or digital products. This setting allows to hide some fields from the form. In this case they will be stored in the database as empty (not null).

An example of this setting would be to hide address fields (a real use case in a production site I am running):
SHOP_HIDE_BILLING_SHIPPING_FIELDS = ( "street",
"city", "state", "postcode", "country",
)

Validation has been changed to allow for this.