Массив стека в LocalStorage
const dataProduct = JSON.parse(localStorage.getItem("dataProduct")) || [];
dataProduct.push(dataProductObj);
localStorage.setItem("dataProduct", JSON.stringify(dataProduct));
Stern