Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › ‘Name or email address is missing!’ is I remove name field from Squeeze
Tagged: remove name field squeeze
- This topic has 6 replies, 3 voices, and was last updated 4 years ago by stalyan.
-
AuthorPosts
-
November 13, 2020 at 8:50 am #81943stalyanParticipant
Hi,
I followed advice on https://support.tipsandtricks-hq.com/forums/topic/estore-remove-name-field-from-squeeze-page to remove the Name field.I added this to custom css:
.eStore_ssf_template_2_name_field{ display: none; } .eStore_ssf_template_2_name_field{ display: none; }
When I enter the email address, a message on top of squeeze says ‘Name or email address is missing!’. How to fix it?
Thanks,
AbelNovember 13, 2020 at 3:01 pm #81946wzpModeratorPlease CAREFULLY compare the CSS code advice given in the other post, against what you said you typed.
November 13, 2020 at 3:14 pm #81947stalyanParticipantOf course I first tried with the original CSS code on that post, but it was not working.
I then used F12 to bring up the consoled and upon inspecting the name field element, the label is the same as I’m posting here.
Check this [drive.google.com/file/d/1zXEURO4lCny0AGrUf_7gz-phorUFnKSj/view?usp=sharing]
Note: of course i’m just showing the ’email’ field as example but the ‘name’ tag is the same, just switching the ’email’ word.
Let me know.
Abel
- This reply was modified 4 years ago by stalyan.
November 14, 2020 at 6:21 pm #81958wzpModeratorCould you please provide us a live URL to a test page, using that shortcode and CSS?
November 14, 2020 at 6:59 pm #81961adminKeymaster@stalyan, the post that you have referred to is not the template that you are using.
The 2nd template that you are using requires both the name and the email fields. You will need to modify the PHP code of teh stylish squeeze form addon to do what you are after.
Look for the following line of code in that addon’s file:
if ( !isset($_POST[‘cust_name’]) || !isset($_POST[‘cust_email’]) || empty($_POST[‘cust_name’]) || empty($_POST[‘cust_email’]))Then change that line to something like the following to remove the name field requirement:
if ( !isset($_POST[‘cust_email’]) || empty($_POST[‘cust_email’]))
November 15, 2020 at 12:59 pm #81972stalyanParticipantThe code worked well thanks. I received the email properly.
The issue now is that when clicking the download link this is displayed:The secure download manager ran into a problem that it couldn’t handle, and is unable to process your download request. Please contact the site administrator.
Please tell the site administrator the problem was due to the following reason:
The download script couldn’t locate the file associated with the digital product. If the administrator thinks this reason is in error, maybe a different URL conversion option might fix the problem.I will investigate and report back.
Thanks,
AbelNovember 15, 2020 at 1:15 pm #81973stalyanParticipantI tried to edit my last reply but the option disappeared when clicking on it.
UPDATE: As I had the Squeeze download products as Variations I had not filled out the Digital Content Details > Digital Product URL. After filling it out with the Basic URL version of the product, now the encrypted link correctly downloads the product.
Thanks a million for your help guys! 🙂
Abel
- This reply was modified 4 years ago by stalyan.
-
AuthorPosts
- You must be logged in to reply to this topic.