How may I make the standard 'other info prompt' readonly in the shopping cart?
Thank you
Thank you
my $sStyle;
if (defined $bHighLight &&
$bHighLight == $::TRUE)
{
$sStyle = " style=\"background-color: $::g_sErrorColor\"";
}
my $sStyle = ' style="border:none;" readonly';
<script type="text/javascript">
$( "input[name^='O_']" ).not( "[style]" ).prop('readonly', true).css('border', 'none');
</script>
$sHTML = ACTINIC::GetPhrase(-1, 2161, "", $sIndex, 35, 1000, $sValue, $sStyle);
if ( $sStyle )
{
$sHTML = ACTINIC::GetPhrase(-1, 2161, "", $sIndex, 35, 1000, $sValue, $sStyle); # error prompt must be editable
}
else
{
$sHTML = '<input type="hidden" name="' . $sIndex . '" value="' . $sValue . '"/>' . $sValue; # hide valid prompt
}
<script type="text/javascript">
$( "input[name^='O_']" ).not( "[style]" ).attr('type', 'hidden').each(function(){$(this).after($(this).val());});
</script>
Comment