A ring with this property on its left ideals is called a left distributive ring, since this a lattice having this property is called a distributive lattice.
(You mentioned you are not talking about the modular condition: of course we should not, because the lattices of left/right/two-sided ideals of a ring are all automatically modular. No such counterexample would exist anyway.)
Here is the DaRT query for rings that aren't left distributive. At the time of posting, it has 20+ examples. (I know you asked for commutative examples, but I wanted to demonstrate that there are also many noncommutative examples which are interesting.)
There are at least two which are commutative, which I will mention explicitly in case the links go out:
$F_2[x,y]/(x,y)^2$ (the one given above.)
$S=k[x_1, x_2, x_3,\ldots ]$ modulo the ideal $I$ generated by $\{x_i^2\mid i\in \mathbb N\}\cup\{x_ix_j\mid i, j\in \mathbb N, j\geq 2i\}$ (for much the same reason as the previous example.)
But can u give another example other than more than one variable ( if possible)
A quotient of a univariate polynomial ring over a field won't work, because that would be a principal ideal ring, and distributivity works for the lattice of ideals of a commutative principal ideal ring.