def paquetes(request):
    if ('product_ids' in request.COOKIES):
        product_ids = request.COOKIES['product_ids']
        counter = product_ids.split('|')
        product_count_in_cart = len(set(counter))
    else:
        product_count_in_cart = 0
    paquetes = models.Paquete.objects.all()
    return render(request, 'ecom/paquetes/paquete.html', {'paquetes': paquetes, 'product_count_in_cart': product_count_in_cart})
def paquetes(request):
    if ('product_ids' in request.COOKIES):
        product_ids = request.COOKIES['product_ids']
        counter = product_ids.split('|')
        product_count_in_cart = len(set(counter))
    else:
        product_count_in_cart = 0
    paquetes = models.Paquete.objects.all()
    return render(request, 'ecom/paquetes/paquete.html', {'paquetes': paquetes, 'product_count_in_cart': product_count_in_cart})