@loginValid
def mycart(request):
    id = request.COOKIES.get('user_id')
    carts = Cart.objects.filter(cart_user=id).order_by('-id')
    number = carts.count()
    return render(request, 'buyer/cart.html', locals())
@loginValid
def mycart(request):
    id = request.COOKIES.get('user_id')
    carts = Cart.objects.filter(cart_user=id).order_by('-id')
    number = carts.count()
    return render(request, 'buyer/cart.html', locals())