You are viewing this forum as a guest. Login to an existing account, or create a new account, to reply to topics and to create new topics.
I'm using the "text box" setting for one of my options. I need to limit the size of the text box to 3 characters. This should be a setting in the options area but it's not...
Any ideas on where I make that change??
thanks,
JC
Offline
One of my options is a tex box field for an inscription. - It's a jewelry site. I need to limit that tex box size & input length to 3 characters.
thanks,
JC
--BTW, thanks for reposting the Res/Commercial mod to include in email. This one made much more sense to me. However, after completing the mod in the ste_order.pl file do I need to also edit the Mail Element(s) to include "tracking_rescom"?
Offline
This assumes that you created your option with an 'Option Reference String' of 'INSCRIPTION'.
Open the file ./cgi-bin/library/modules/ste_prod.pl for editing. Look in the routine 'ste_prod_show_options_disp' for:
if ($display_type eq "TEXTBOX") { print <<ENDOFTEXT; <INPUT TYPE="TEXT" NAME="$id" SIZE="20" VALUE=""> ENDOFTEXT
And change to:
if ($display_type eq "TEXTBOX") { if ($id eq "INSCRIPTION") { print <<ENDOFTEXT; <INPUT TYPE="TEXT" NAME="$id" SIZE="3" MAXLENGTH="3" VALUE=""> ENDOFTEXT } else { print <<ENDOFTEXT; <INPUT TYPE="TEXT" NAME="$id" SIZE="20" VALUE=""> ENDOFTEXT } ######### End of if statement.
Offline
Hi there,
How can i center the text box and options including these with prices..
Thank you
Offline
Bump
Offline
Nick,
thanks for this. I wanted to do something similar for a TEXTAREA and your adjustment works equally as well for this.
Cheers.
Roy
Offline