Some useful ''conventions'' as $0!=1$ or $a^0=1$ are particular cases of an empty product, i.e. a product between elements of the empty set. I know that such product is defined as a convention by: $$ \prod _{x_i\in \emptyset} x_i=1 $$ This convention is usually motivated (see here) by the fact that the definition of the product of $n$ numbers $\{x_1,\cdots x_i,\cdots x_n\}$: $$ P_n=\prod _{i=1}^n x_i $$ can be given recursively as $P_n=x_n P_{n-1}$ and the recursive definition become simpler and ''universal'' if we assume $P_0=1$ i.e.: the product with no factors is $1$.
But i don't understand how this convention can be reconciled with the axiomatic definition of the product operation in a field ( or ring) $R$. As far as I know the product is defined as a binary operation $\cdot :R\times R \rightarrow R$ and the empty set is not an element of $R\times R$. So, my question is: the definition of the empty product is only a notation convention that has not an exact mathematical meaning ( since it can not be derived by the axioms) or it can be given in some way as an axiom when we define a ring? And, in this case what kind of axiom we must introduce so that $0!=1$ and $a^0=1$ became theorems and not simply notational conventions?
It can be instructive to look at the set-theoretic product here. Indeed, when the natural numbers are formalised as sets, it's true that the product of natural numbers is (the isomorphic to) the product of the corresponding sets; and multiplication in a field, commutative ring, algebra or whatever, can be considered to generalise that of natural numbers. So the set-theoretic empty product tells us what the empty product in a ring 'should be'.
Given a set $S$ of sets, the product $\prod S$ is the set of choice functions for $S$, i.e. the set of functions $f : S \to \bigcup S$ such that $f(X) \in X$ for all $X \in S$. In more familiar terms, i.e. if $S = \{ X_i \mid i \in I \}$ for some index set $I$, the product $\prod S = \prod_{i \in I} X_i$ is the set of functions $f : I \to \bigcup_{i \in I} X_i$ such that $f(i) \in X_i$ for all $i \in I$... but for talking about the empty set, the $\prod S$ notation will be more useful.
Now, consider the case when $S = \varnothing$. Then $\bigcup S = \varnothing$ too, so $\prod \varnothing$ is a set of functions $\varnothing \to \varnothing$. There is only one such function, namely $\varnothing$ itself (when functions are formalised as sets of ordered pairs) and it vacuously satisfies the 'choice function' condition; hence $\prod \varnothing = \{ \varnothing \} = 1$.
So considering multiplication in an arbitrary commutative ring (or module or monoid or algebra or ...) as a generalisation of multiplication of natural numbers, in addition to the useful properties mentioned by other users, it makes sense to consider the empty product as being to the multiplicative unit.
This carries over to factorials and exponentials immediately. Indeed: