from .models import Order


def cartTotal(request):
    total = 0
    if request.user.is_authenticated:
        customer = request.user.customer
        order, created = Order.objects.get_or_create(customer=customer,
            status='C')
        total = order.get_cart_total
    return {'cartTotal': total}

c9b367aad22cb4517aa4833c674c625343715ba3
<mask token>

<mask token>


def cartTotal(request):
    total = 0
    if request.user.is_authenticated:
        customer = request.user.customer
        order, created = Order.objects.get_or_create(customer=customer,
            status='C')
        total = order.get_cart_total
    return {'cartTotal': total}

from .models import Order


def cartTotal(request):
    total = 0
    if request.user.is_authenticated:
        customer = request.user.customer
        order, created = Order.objects.get_or_create(customer=customer,
            status='C')
        total = order.get_cart_total
    return {'cartTotal': total}
