The answer to both questions is yes.
As a preliminary, let's prove that for any infinite-dimensional vector space $V$, that
- Lemma: $card(V) = card(k) \cdot \dim V$$|V| = |k| \cdot \dim V$
where $|X|$ denotes the cardinality of a set $X$.
Proof: Since $card(k) \leq card(V)$$|k| \leq |V|$ and $\dim V \leq card(V)$$\dim V \leq |V|$, the inequality
$$card(k) \cdot \dim V \leq card(V)^2 = card(V)$$$$|k| \cdot \dim V \leq |V|^2 = |V|$$
is obvious. On the other hand, any element of $V$ is uniquely of the form $\sum_{j \in J} a_j e_j$ for some finite subset $J$ of (an indexing set of) a basis $B$ and all $a_j$ nonzero. So an upper bound of $card(V)$$|V|$ is $card(P_{fin}(B)) \sup_{j \in P_{fin}(B)} card(k)^j$$|P_{fin}(B)| \cdot \sup_{j \in P_{fin}(B)} |k|^j$. If $B$ is infinite, then $card(P_{fin}(B)) = card(B) = \dim(V)$$|P_{fin}(B)| = |B| = \dim(V)$, and for all finite $j$ we have $card(k^j) \leq card(k)$$|k^j| \leq |k|$ if $k$ is infinite, and $card(k^j) \leq \aleph_0$$|k^j| \leq \aleph_0$ if $k$ is finite, and either way we have
$$card(V) \leq \dim V \cdot \max\{card(k), \aleph_0\} \leq \dim V \cdot card(k)$$$$|V| \leq \dim V \cdot \max\{|k|, \aleph_0\} \leq \dim V \cdot |k|$$
as desired. $\Box$
The rest is now easy. Suppose $I$ is an infinite set, and suppose without loss of generality that $V_i$ is nontrivial for all $i \in I$. Put $V = \prod_{i \in I} V_i$. We have
$$\dim V \geq \dim k^I = card(k)^I \geq card(k)$$$$\dim V \geq \dim k^I = |k|^I \geq |k|$$
where the equality is due to Erdos and Kaplansky. Therefore
$$\dim(V) = \dim(V)^2 \geq \dim V \cdot card(k) = card(V) = \prod_i card(V_i)$$$$\dim(V) = \dim(V)^2 \geq \dim V \cdot |k| = |V| = \prod_i |V_i|$$
by the lemma above.