added direct to cart page. fixed bug in product details page. added qty valid.

This commit is contained in:
2023-04-25 14:20:22 +05:30
parent 7823781020
commit e922bb6b35
11 changed files with 210 additions and 50 deletions
+6
View File
@@ -275,6 +275,12 @@ function initLogin() {
window.localStorage.setItem("Useremail", userEmail);
//window.localStorage.setItem("Userpassword", userPassword);
window.localStorage.setItem("isaccountCreated", true);
const isCartAdded = localStorage.getItem(CART_ADD);
if(isCartAdded){
localStorage.removeItem(CART_ADD);
window.location.href = `/selectdelivery.html`;
return;
}
window.location.href = `./index.html`;
} else {
// toasterOpts();