Let me give a proof to
If $A$ is a PID, and $\mathfrak{p}$ a prime ideal in $A$, then the localization $A_{\mathfrak{p}}$ is also a PID.
Proof. Suppose $\mathfrak{a} \subset A_{\mathfrak{p}}$ be an ideal. We need to show that $\mathfrak{a}$ is principal, i.e. $\mathfrak{a}= (f)$ for some $f\in A_{\mathfrak{p}} $. Recall (see Prop. 3.11 in Atiyah-Macdonald) that every ideal in the localization is an extended ideal. Hence there exists an ideal $\mathfrak{b} =(g)\subset A$ such that $(g)^e = \mathfrak{a}$. Now given the cannonical map $\varphi:A\to A_{\mathfrak{p}}, \ x \mapsto x/1$,
$$
\mathfrak{a} = \mathfrak{b}^e :=\langle \varphi(g) \rangle = (g/1).
$$
Thus $A_{\mathfrak{p}}$ is a PID.
This is just a remark that above result gives a nice way of describing the Zariski-open sets in the scheme $\mathrm{Spec}A_{\mathfrak{p}}$ if $A$ is a PID and $\mathfrak{p} \subset A$ is a prime ideal. For a PID $A$, one shows that open sets are same as basic open sets $D(f)$. Indeed, if $U\subset \mathrm{Spec}A$ is open, then $U=V(\mathfrak{a})^c=V(f)^c=:D(f)$ for some $f\in A$ that generates the ideal $\mathfrak{a}.$ Because of the above result in the grey box, we know $A_{\mathfrak{p}}$ is a PID, and hence every open set in $\mathrm{Spec}A_{\mathfrak{p}}$ is of the form $D(g)$ for some $g\in A_{\mathfrak{p}}.$