added minimum for cart, added type=num for cart