
def importe_carro(request):
    total = 125
    if request.user.is_authenticated:
        for key,value in request.session["carro"].items():
            total = total+(float(value["precio"])*value["cantidad"])
    
    return{"importe_total_precio":total}
