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

How to validate "Product Variations" and "Collect Customer Input"?

by

Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › How to validate "Product Variations" and "Collect Customer Input"?

  • This topic has 4 replies, 2 voices, and was last updated 14 years, 3 months ago by winning.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • February 25, 2011 at 5:33 am #2806
    winning
    Member

    I want customers to do something in “Product Variations” and “Collect Customer Input”. If they leave it as default, a red message will show on page to remind them to do it.

    For “Product Variations”, I set the default entry to “0” and the customers should choose an option from the drop down that is not “0”. How do I check if people do it or not? For example, when people click add to cart, if they have not entered the variation field by choosing something other than 0, the item cannot be added to cart, and there should be a red message asking them to choose from the drop down Product Variations field

    Similar question for “Collect Customer Input” field. How do I know if people do enter something? This is a required field. If the customers have not yet enter text in this field, the item can not be added to cart. When add to cart button is clicked in this case, a red reminder message shows on page to let people know they should type in something.

    Thank you for your time and look forward to the solution!

    February 25, 2011 at 11:35 pm #29452
    amin007
    Participant

    This post will explain how you can make the customer input field a mandatory field:

    https://support.tipsandtricks-hq.com/forums/topic/can-i-require-or-make-mandatory-the-collect-customer-input-field

    February 28, 2011 at 1:12 pm #29453
    winning
    Member

    Thank you for your reply. That answer 1/2 of my questions.

    We also wonder:

    how to make 3 “Product Variations” all mandatory fields?

    Thanks! Look forward to your solution :)

    March 1, 2011 at 12:26 am #29454
    amin007
    Participant

    The variation field will always have one variation selected so the user will not be able to add an item without selecting something.

    March 1, 2011 at 1:01 am #29455
    winning
    Member

    Hi amin007,

    Thanks a million for the answer with the customer input mandatory solution!

    Here is the explaination to my other 1/2 question.

    I am using the variation for the online buyers to enter a date. For example, one variation field is written like this:

    Month|00|01|02|03|04|05|06|07|08|09|10|11|12

    The reason I set the first variation to 00 is that I want the buyers to enter his month. If it is 00, his order is not valid because he does not choose a month.

    I do not want to put 01 as default to accidentally take the order as 01 if this is not the buyer’s month of choice.

    Is there any way to validate whether or not the buyer has chosen a month? For example check whether the month variation is 00.

    If it is 00, that means the buyer has not chosen his month value and we will display a reminder text near the variation field or near “add to cart” button to ask him to choose a month before adding this item to cart.

    If it is not 00, that means the buyer has made his choice, the item can now be added to cart as usual.

    Again, thank you for your time and look forward to the solution!

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

Forum Related

  • Forum Home
  • Forum Search
  • Forum Registration
  • 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
  • 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

Our Other Plugins

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

Copyright © 2025 | Tips and Tricks HQ