Rename get_cart_total

This commit is contained in:
Raphael Michel
2025-08-11 16:43:48 +02:00
parent 3735b6b5a9
commit e30e738e96
4 changed files with 22 additions and 10 deletions

View File

@@ -92,7 +92,7 @@ from pretix.presale.signals import (
)
from pretix.presale.utils import customer_login
from pretix.presale.views import (
CartMixin, get_cart, get_cart_is_free, get_cart_total,
CartMixin, get_cart, get_cart_is_free, get_cart_position_sum,
)
from pretix.presale.views.cart import (
_items_from_post_data, cart_session, create_empty_cart_id,
@@ -1252,7 +1252,7 @@ class PaymentStep(CartMixin, TemplateFlowStep):
@cached_property
def _total_order_value(self):
cart = get_cart(self.request)
total = get_cart_total(self.request)
total = get_cart_position_sum(self.request)
try:
total += sum([
f.value for f in get_fees(
@@ -1415,7 +1415,7 @@ class PaymentStep(CartMixin, TemplateFlowStep):
return False
cart = get_cart(self.request)
total = get_cart_total(self.request)
total = get_cart_position_sum(self.request)
try:
total += sum([f.value for f in get_fees(self.request.event, self.request, total, self.invoice_address,
self.cart_session.get('payments', []), cart)])