From df372a5ea1ec6ff292b4e3aa6a788bb3f9991500 Mon Sep 17 00:00:00 2001 From: Russell Ballestrini Date: Wed, 24 Sep 2025 16:30:06 -0400 Subject: [PATCH] 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 --- make_post_sell/templates/crypto_checkout.j2 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/make_post_sell/templates/crypto_checkout.j2 b/make_post_sell/templates/crypto_checkout.j2 index cd1bd6d..d7025f5 100644 --- a/make_post_sell/templates/crypto_checkout.j2 +++ b/make_post_sell/templates/crypto_checkout.j2 @@ -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);