Tips and Tricks HQ Support

Support site for Tips and Tricks HQ premium products

  • Home
  • Contact Us
  • Documentation
  • Forum Home
    • Forum
    • Forum Search
    • Forum Login
    • Forum Registration

Collect Customer Input – limit field label character count [SOLVED]

by

Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › WP eStore Tweaks › Collect Customer Input – limit field label character count [SOLVED]

Tagged: character count, collect customer input, limit field label, PayPal, word count

  • This topic has 1 reply, 2 voices, and was last updated 10 years, 4 months ago by admin.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • November 27, 2012 at 3:39 pm #8013
    jswags
    Member

    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.

    November 28, 2012 at 5:12 am #51821
    admin
    Keymaster

    Thank you for sharing your tweak.

  • Author
    Posts
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Log In

Forum Related

  • Forum Home
  • Forum Search
  • Forum Login

Support Related Forms

  • Contact Us
  • Customer Support
  • Request a Plugin Update
  • Request Fresh Download Links

Useful Links

  • Plugin Upgrade Instructions
  • WP eStore Documentation
  • WP eMember Documentation
  • WP Affiliate Platform Documentation
  • WP PDF Stamper Documentation
  • WP Photo Seller Documentation
  • Tips and Tricks HQ Home Page
  • Our Projects

Quick Setup Video Tutorials

  • WP eStore Video Tutorial
  • WP eMember Video Tutorial
  • WP Affiliate Platform Video Tutorial
  • Lightbox Ultimate Video Tutorial
  • WP Photo Seller Video Tutorial

Our Other Plugins

  • WP Express Checkout
  • Stripe Payments Plugin
  • Simple Shopping Cart Plugin
  • Simple Download Monitor

Copyright © 2023 | Tips and Tricks HQ