Aki, found another one. Already corrected it also.
The HTTP referer should have preference over the cookie value when getting the entry_url variable to continue shopping, otherwise if users shop from multiple locations the cookie value will cause some confusion and incorrect continue shopping referers.
the correct code shoud be:
if ($ENV{HTTP_REFERER} =~ /cart\.cgi/) {
$referido = $IN->cookie( "entry_url" );
}
else {
$referido = $ENV{HTTP_REFERER};
}
$tags->{gocart_to_currency} = dollar_str_subroutine();
$tags->{gocart_to_datestr} = \×tamp_to_datestr;
$tags->{cid} = $IN->param( "cid" ) || $IN->cookie( "cid" );
$tags->{entry_url} = $IN->param( "entry_url" )
|| $referido
|| $IN->cookie( "entry_url" )
|| $cfg->{cart_bounce_url};
The HTTP referer should have preference over the cookie value when getting the entry_url variable to continue shopping, otherwise if users shop from multiple locations the cookie value will cause some confusion and incorrect continue shopping referers.
the correct code shoud be:
if ($ENV{HTTP_REFERER} =~ /cart\.cgi/) {
$referido = $IN->cookie( "entry_url" );
}
else {
$referido = $ENV{HTTP_REFERER};
}
$tags->{gocart_to_currency} = dollar_str_subroutine();
$tags->{gocart_to_datestr} = \×tamp_to_datestr;
$tags->{cid} = $IN->param( "cid" ) || $IN->cookie( "cid" );
$tags->{entry_url} = $IN->param( "entry_url" )
|| $referido
|| $IN->cookie( "entry_url" )
|| $cfg->{cart_bounce_url};