Redirect to cart when quote expires on page
- Add 3-second delay redirect to /cart when quote expires while user is on page - Provides clear navigation path after expiry warning message - Prevents users from staying on expired quote pages
This commit is contained in:
parent
f25404eac3
commit
df372a5ea1
1 changed files with 5 additions and 0 deletions
|
|
@ -306,6 +306,11 @@
|
|||
clearInterval(countdownInterval);
|
||||
countdownInterval = null;
|
||||
}
|
||||
|
||||
// Redirect to cart after 3 seconds when quote expires
|
||||
setTimeout(() => {
|
||||
window.location.href = '/cart';
|
||||
}, 3000);
|
||||
} else if (!expiredWarningShown) {
|
||||
// Only update countdown if not expired
|
||||
const s = Math.floor(ms / 1000);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue