PDA

View Full Version : Help with a modification please.


marknc
29-Dec-2003, 10:14 PM
I have added a class to all the buttons in the cart and checkout. The only two that are proving tricky are the EDIT and REMOVE buttons when you View the Cart. I can only find the script for these in the file ShoppingCart.pl and as I am unfamiliar with Perl I wondered if anyone could show me how make the modification class="submit" here?
:confused:
Thanks
Mark

NormanRouxel
30-Dec-2003, 01:49 AM
Could you post the snippets of code that you've located please.

Norman

marknc
30-Dec-2003, 10:16 AM
I'm pretty certain that this is it, though it may not be complete or may be referenced elsewhere in the file. You will probably know better than me.

...
# PRESNET
#
# initialize some Presnet hashes (must come after prompt file)
#
if(!defined $::g_InputHash{"ACTION"})
{
if(defined $::g_InputHash{"ACTION_CONFIRM.x"})
{
$::g_InputHash{"ACTION"} = $::g_sConfirmButtonLabel;
}
elsif(defined $::g_InputHash{"ACTION_CANCEL.x"})
{
$::g_InputHash{"ACTION"} = $::g_sCancelButtonLabel;
}
elsif(defined $::g_InputHash{"ACTION_BUYNOW.x"})
{
$::g_InputHash{"ACTION"} = ACTINIC::GetPhrase(-1, 184);
}
elsif (defined $$::g_pSetupBlob{'EDIT_IMG'} && $$::g_pSetupBlob{'EDIT_IMG'} ne '')
{
my $sKey;
foreach $sKey (keys(%::g_InputHash))
{
if ($sKey =~ /^ACTION_EDIT(\d+)\.x/)
{
$::g_InputHash{$1} = $::g_sEditButtonLabel;
}
elsif ($sKey =~ /^ACTION_REMOVE(\d+)\.x/)
{
$::g_InputHash{$1} = $::g_sRemoveButtonLabel;
}
}
}
}
# PRESNET
}
...

Thanks

NormanRouxel
30-Dec-2003, 11:02 AM
That looks like some old code that's was used a few years ago for a single Actinic partner (PRESNET). I don't think that's it.

Perhaps someone who uses V4 will know.

Norman