Print Page | Close Window

Custom Input Field Question

Printed From: ProductCart E-Commerce Solutions
Category: ProductCart
Forum Name: Getting Started
Forum Description: Installing, activating, and getting started with ProductCart
URL: https://forum.productcart.com/forum_posts.asp?TID=2848
Printed Date: 05-October-2024 at 10:04pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Custom Input Field Question
Posted By: julesjewelry
Subject: Custom Input Field Question
Date 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



Replies:
Posted By: Greg Dinger
Date Posted: 07-July-2009 at 1:32am
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.


-------------
GreyBeard Design Group

Certified ProductCart Developer

Web Design/Development/Hosting

http://tinyurl.com/5c8t4t" rel="nofollow - Add-Ons & Custom Code |


Posted By: Greg Dinger
Date Posted: 07-July-2009 at 1:38am
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


-------------
GreyBeard Design Group

Certified ProductCart Developer

Web Design/Development/Hosting

http://tinyurl.com/5c8t4t" rel="nofollow - Add-Ons & Custom Code |


Posted By: Hamish
Date Posted: 07-July-2009 at 4:29am
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?

-------------
Editing ProductCart Code?

See http://wiki.earlyimpact.com/developers/editcode" rel="nofollow - WIKI Guidelines for Editing ProductCart's ASP Source Code



Posted By: julesjewelry
Date Posted: 07-July-2009 at 11:08am
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


Posted By: mattprice
Date Posted: 08-July-2009 at 3:17am

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.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net