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

eStore – Squeeze Form – Not require Name, just email

by

Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › WP eStore Tweaks › eStore – Squeeze Form – Not require Name, just email

Tagged: bad, break, code, customize squeeze form, email, form, WP eStore

  • This topic has 3 replies, 3 voices, and was last updated 12 years, 4 months ago by mlamaradmin.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • January 15, 2013 at 12:27 am #8326
    mlamaradmin
    Member

    Hi, I am giving away a free download on my site in exchange for signing up to the mailing list — so I am using the squeeze form <?php echo eStore_free_download_form(2); ?>

    Iv’e hacked away at it to get it styled how I would like, but I only want to require an Email address for the user and have only one form to fill in. But I get an error message when there’s nothing in the name field. “Name or email address is missing!”

    How can I only require email the address?

    Thanks for any help!

    January 15, 2013 at 3:00 am #53056
    jerryc
    Member

    Try adding a hidden field on your form with the same name as the form’s name field, and assign it a value like “foo.” Then, periodically do something like have your db replace all name fields where value = “foo” to value = “”.

    January 15, 2013 at 5:04 am #53057
    admin
    Keymaster

    You could also tweak an eStore file to change this. Open the “eStore_misc_functions.php” file and search for the following:

    if (empty($_POST['cust_name']) || empty($_POST['cust_email'])) {

    Once you find it, change it the following:

    if (empty($_POST['cust_email'])) {

    That should remove the “name” field requirement.

    January 17, 2013 at 4:30 am #53058
    mlamaradmin
    Member

    Thank you! that worked great!

    Although I’m afraid I must have hacked something wrong.

    Now if someone enters a bad email address, the form disappears and everything in the code after it disappears as well. I’ve been scouring trying to find the “BAD EMAIL” function but with no luck. Does anyone have any idea what could be causing this? Or where that function is found in the code?

  • Author
    Posts
Viewing 4 posts - 1 through 4 (of 4 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