Hi there
I've just switched to using images for the checkout buttons (rather than the standard buttons). I've followed the instructions on page 29 of the v6 advanced user guide.
For the 'back' button for example the code is now:
<input type=IMAGE name=ACTION_BACK src="back.gif">
rather than
<input type=SUBMIT name=ACTION value="NETQUOTEVAR:BACKBUTTON">
I've also copied the following text into 'orderscript.pl' as instructed, to define the functions of the buttons:
if(!defined $::g_InputHash{"ACTION"})
{
if(defined $::g_InputHash{"ACTION_BACK.x"})
{
$::g_InputHash{"ACTION"} = ACTINIC::GetPhrase(-1, 503);
}
elsif(defined $::g_InputHash{"ACTION_CANCEL.x"})
{
$::g_InputHash{"ACTION"} = ACTINIC::GetPhrase(-1, 505);
}
elsif(defined $::g_InputHash{"ACTION_NEXT.x"})
{
$::g_InputHash{"ACTION"} = ACTINIC::GetPhrase(-1, 502);
}
}
All of the buttons work fine apart from one major problem. When you hit the Enter key (as users are inclined to do) while filling in the forms, it now takes you back to the previous checkout page rather than forward!
I wonder whether anyone can help . I want to keep images for the checkout buttons but Enter should definitely take the user forward to the next page, not back!
Many thanks
Jon
I've just switched to using images for the checkout buttons (rather than the standard buttons). I've followed the instructions on page 29 of the v6 advanced user guide.
For the 'back' button for example the code is now:
<input type=IMAGE name=ACTION_BACK src="back.gif">
rather than
<input type=SUBMIT name=ACTION value="NETQUOTEVAR:BACKBUTTON">
I've also copied the following text into 'orderscript.pl' as instructed, to define the functions of the buttons:
if(!defined $::g_InputHash{"ACTION"})
{
if(defined $::g_InputHash{"ACTION_BACK.x"})
{
$::g_InputHash{"ACTION"} = ACTINIC::GetPhrase(-1, 503);
}
elsif(defined $::g_InputHash{"ACTION_CANCEL.x"})
{
$::g_InputHash{"ACTION"} = ACTINIC::GetPhrase(-1, 505);
}
elsif(defined $::g_InputHash{"ACTION_NEXT.x"})
{
$::g_InputHash{"ACTION"} = ACTINIC::GetPhrase(-1, 502);
}
}
All of the buttons work fine apart from one major problem. When you hit the Enter key (as users are inclined to do) while filling in the forms, it now takes you back to the previous checkout page rather than forward!
I wonder whether anyone can help . I want to keep images for the checkout buttons but Enter should definitely take the user forward to the next page, not back!
Many thanks
Jon
Comment