Custom Input Field Question |
Post Reply |
Author | |
julesjewelry
Newbie Joined: 07-July-2009 Status: Offline Points: 0 |
Post Options
Thanks(0)
Posted: 07-July-2009 at 1:07am |
I was wondering if it was possible to remove the custom input field warning that shows below the text box. The one that says something like..."You have 20 characters left. Do not use HTML. "
Thanks!
|
|
- Julie
|
|
Greg Dinger
Certified ProductCart Developers Joined: 23-September-2006 Location: United States Status: Offline Points: 238 |
Post Options
Thanks(0)
|
I have not tried this, so make a backup of /includes/languages.asp before proceeding. It may work, and then again...
Find these statements in the above file: dictLanguage.Add "english_GiftWrap_5a", "You have " dictLanguage.Add "english_GiftWrap_5b", "characters left. Do not use HTML." change them to this: dictLanguage.Add "english_GiftWrap_5a", "" dictLanguage.Add "english_GiftWrap_5b", "" good luck. |
|
Greg Dinger
Certified ProductCart Developers Joined: 23-September-2006 Location: United States Status: Offline Points: 238 |
Post Options
Thanks(0)
|
Ya know, the moment I posted I realized it won't work. you'll still have the 20 in there. Hang on and I'll be back when I find the line that needs to be edited in another file.
OK, here ya go. First, make a backup copy of /pc/viewprdcode.asp. Then open the file with a text editor. In that file are 6 instances of statement that contain a reference to "GiftWrap_5a". Perform a "find" with your editor looking for that string. The 6 statements will be similar to this: <%response.write dictLanguage.Item(Session("language")&"_GiftWrap_5a")%><span id="countchar1" name="countchar1" style="font-weight: bold"><%=maxlength%></span> <%response.write dictLanguage.Item(Session("language")&"_GiftWrap_5b")%> You need to comment them out. <!--<%response.write dictLanguage.Item(Session("language")&"_GiftWrap_5a")%><span id="countchar1" name="countchar1" style="font-weight: bold"><%=maxlength%></span> <%response.write dictLanguage.Item(Session("language")&"_GiftWrap_5b")%>--> There are also some <br> line breaks which you may want to comment but this will require testing as you make edits, and making certain that you achieve the layout you desire. As you make these edits, PLEASE be certain to place comments in the code so you can find your changes and re-apply them at a future date such as when you are upgrading to v4. Here are some helpful ideas about editing scripts: http://wiki.earlyimpact.com/developers/editcode?s[]=editing Edited by Greg Dinger - 07-July-2009 at 1:55am |
|
Hamish
Admin Group Joined: 12-October-2006 Location: United Kingdom Status: Offline Points: 56 |
Post Options
Thanks(0)
|
It's possible to remove that text, but is it a good idea? The countdown and the warning about not using HTML are both useful information. Is there a good reason, other than aesthetics, why you wish to remove the warning text?
|
|
julesjewelry
Newbie Joined: 07-July-2009 Status: Offline Points: 0 |
Post Options
Thanks(0)
|
Great, thank you. I'll try that. Yes, for now it's just an aesthetic and scrolling/length of page issue. My customers would not need the count down or html warning, because they are just typing in a name for a personalized bracelet.
Thanks again, I'll give it a try.
|
|
- Julie
|
|
mattprice
Senior Member Joined: 03-June-2007 Location: United Kingdom Status: Offline Points: 0 |
Post Options
Thanks(0)
|
You could enter a zero in the maximum number of characters field for this custom field. This removes the text altogether. If you do have a character limit for the bracelet names then you could mention this in the custom field description instead and rely on a customer's common sense when ordering. Of course, this method does not stop somebody breaking any character limit rules when placing an order.
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |