Add total argument to fee calculation signals

This commit is contained in:
Raphael Michel
2018-02-28 21:03:38 +01:00
parent 37f0f7a138
commit d8d00a7e26
4 changed files with 11 additions and 7 deletions

View File

@@ -80,7 +80,7 @@ argument will contain the request object.
"""
fee_calculation_for_cart = EventPluginSignal(
providing_args=['request']
providing_args=['request', 'invoice_address', 'total']
)
"""
This signals allows you to add fees to a cart. You are expected to return a list of ``OrderFee``
@@ -88,7 +88,8 @@ objects that are not yet saved to the database (because there is no order yet).
As with all plugin signals, the ``sender`` keyword argument will contain the event. A ``request``
argument will contain the request object and ``invoice_address`` the invoice address (useful for
tax calculation).
tax calculation). The ``total`` keyword argument will contain the total cart sum without any fees.
You should not rely on this ``total`` value for fee calculations as other fees might interfere.
"""
contact_form_fields = EventPluginSignal(