Let me start with 1) I know just enough to get myself in trouble most of the time and out of it occasionally. 2) I am stuck with a very old shopping cart, but it serves my purpose, and I am already 5 years past retirement age and have no desire to start from scratch (I'll leave that up to someone else). So.....
When someone adds something to the shopping cart, there is a "continue shopping" button (code below). It always used to (for YEARS) return them to the last page they viewed. Now it returns to index.html page instead (very annoying to the shopper if they want multiple things from the same page).
Tested on Firefox and Chrome - same results
$ContinueShopURL
is null ('')
$ErrMsgRedirect
and $ErrMsgViewCart
are not index.html
$ERRORMODE
is not 2
From my extremely limited understanding it is looking like HTTP_REFERER
is not functioning.
Any thoughts? Thanks!
if ($ContinueShopURL) {
$previouspage = $ContinueShopURL;
} elsif ($frm{'previouspage'}) {
$previouspage = $frm{'previouspage'};
} else {
if ($ERRORMODE==2 && $ENV{'HTTP_REFERER'} =~ /$ErrMsgRedirect/i) {
$previouspage = $ErrMsgViewCart;
} else {
if ($frm{'RET_URL'}) {
$previouspage = $frm{'RET_URL'};
} else {
$previouspage = $ENV{'HTTP_REFERER'};
}
}
}