Home : Products : Gossamer Links : Development, Plugins and Globals :

Products: Gossamer Links: Development, Plugins and Globals: Re: [Aki] GoCart problem: Edit Log

Here is the list of edits for this post
Re: [Aki] GoCart problem
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} = \&timestamp_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};

Last edited by:

jaltuve: Mar 15, 2003, 8:45 AM

Edit Log: