- This topic has 1 reply, 2 voices, and was last updated 11 years, 12 months ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.
Support site for Tips and Tricks HQ premium products
by
Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › WP eStore Tweaks › Collect Customer Input – limit field label character count [SOLVED]
Hi,
I didn’t find an answer within the forum to this question so thought I’d post my solution for others to use.
The Issue – Collect Customer Input field.
If you’re using the “Collect Customer Input” there is currently no character limit within WP eStore for that text field. I’ve found customers can type in a very long message but only the first 15 words are delivered with the product name to PayPal and then via email. (PayPal limits the amount of characters to about 130 for the product name + customer input)
To stop customers typing really long messages that get cut we can limit the character count for that text field.
N.B Remember that your product name is included in the 140 character count so if it’s a long title, space will be limited further for the customer.
1. navigate to Plugins > Wp eStore and click the ‘Edit’ hyperlink
2. Click to edit “eStore_button_display_helper.php”
3. Find this line of code:
<input type="text" name="custom_input" value="" class="eStore_text_input" />
Add in maxlength=”90″ where 90 is your character count – you can choose any number as long as it’s less than 140 minus the title of your product.
<input type="text" maxlength="90" name="custom_input" value="" class="eStore_text_input" />
N.B. there will be 2 occurrences so change them both
4. Click Update
5. Test – when typing into the field. The cursor should stop once it reaches the character limit.
Note: to turn on “Collect Customer Input” Navigate to WP eStore > Add/Edit Products; Additional Product Details (Click to Expand); it’s near the bottom of this list, tick “Field Label” to enable it.
Hope that helps other users.
Thank you for sharing your tweak.