divio/django-shop — Issue #111: Customization of cart, cart item / order, order item extra price fields 
Author: bmihelac
Created: 2011-10-25 09:00:18+00:00
State: open

I meet some use cases and it seems impossible to achieve without a way to put more data in extra price fields:

1 Tax grouping

Using per item tax modifier (ie: TenPercentPerItemTaxModifier) and want to display summary for each Tax at the end of cart, ie:

VAT 20%, Base = 12,00 EUR, Tax = 2,00 EUR
VAT 8,50%, Base = 10,85 EUR, Tax = 0,85 EUR

2 Hiding some cart fields

On every page, one may want to display cart, but do not want to overfill space with Tax fields for every item.

3 Tax for shipping

One could want to have Tax information to exists for shipping in ExtraOrderPriceField

For 1. and 2. cases I think it would be easily achieved with adding optional ``group`` (or ``groups``) string attribute to already existing ``label`` and ``amount`` fields. This change should be backward compatible.

For third case, I am not sure if it would be enough to assign tax label to ``group`` and handle it in custom code.

What do you think?