Password required in ckeckout page!
-
Hello,
When client go to checkout page, they have choice to register an account or not, but if they decide to ignore registring an account, when they click on “Purchase”, an error message indicate: Error: password required
But this is optional! what is the problem? just email and fist name are required.
Do that on version: 1.81, 1.82, 1.82.1 of the plugin
-
That means your theme has some javascript that is auto filling the registration fields (probably copying the text from the place holder). This makes EDD think the username / email fields are not empty, meaning a password would in fact be required.
I’m sorry but that’s not something we can help with.
I can tell you what to look for if you want to edit the theme’s code, but the best option would be to contact the theme developer and ask them how to remove that behavior.
Thanks very thanks for you guys, Williamson and sumobi for your help and patience…
I’ll try to take care of myself. Thank you for your help and patience.
Your plugin is great and even for the quick response to my problem is the quality of your product I rate 5 stars on the page of your wordpress pluginIt’s a GREAT plugin with a lot of add-on and possibilities, very professionnal
No problem! We hope you get the issue sorted
I put in the email validation seeting page of EDD, the value {username}, then I filled the checkout page without filling the “Username” box, and then I put the 2 passwords required. Sends it does well without the Username box is filled.
In the confirmation email, the value {username} is the same as the value {name} !
WHHHOOOO hooooo I’ve find,
This file in themepath/js/hint.js
contain this code:
jQuery.fn.hint = function (blurClass) {
if (!blurClass) {
blurClass = ‘blur’;
}return this.each(function () {
// get jQuery version of ‘this’
var $input = jQuery(this),// capture the rest of the variable to allow for reuse
title = $input.attr(‘title’),
$form = jQuery(this.form),
$win = jQuery(window);function remove() {
if ($input.val() === title && $input.hasClass(blurClass)) {
$input.val(”).removeClass(blurClass);
}
}// only apply logic if the element has the attribute
if (title) {
// on blur, set value to title attr if text is blank
$input.blur(function () {
if (this.value === ”) {
$input.val(title).addClass(blurClass);
}
}).focus(remove).blur(); // now change all inputs to title// clear the pre-defined text when form is submitted
$form.submit(remove);
$win.unload(remove); // handles Firefox’s autocomplete
}
});
};if i delete all the content the error desappear and all is OK, is this file is important?
I’ve found a fix for that file who can create error, you can find description here:
https://blog.glyphobet.net/essay/878Replace all “hint.js” content by this:
/**
* @author Remy Sharp
* @url https://remysharp.com/2007/01/25/jquery-tutorial-text-box-hints/
*
* better val() method added by Matt Chisholm, 2009/07/27
* https://glyphobet.net/blog/essay/878
*/(function ($) {
$.fn.hint = function (blurClass) {
if (!blurClass) {
blurClass = ‘blur’;
}return this.each(function () {
// get jQuery version of ‘this’
var $input = $(this),// capture the rest of the variable to allow for reuse
title = $input.attr(‘title’),
$form = $(this.form),
$win = $(window);function remove() {
if ($input.realval() === title && $input.hasClass(blurClass)) {
$input.val(”).removeClass(blurClass);
}
}// only apply logic if the element has the attribute
if (title) {
// on blur, set value to title attr if text is blank
$input.blur(function () {
if (this.value === ”) {
$input.val(title).addClass(blurClass);
}
}).focus(remove).blur(); // now change all inputs to title// clear the pre-defined text when form is submitted
$form.submit(remove);
$win.unload(remove); // handles Firefox’s autocomplete
}
});
};$.fn.realval = $.fn.val;
$.fn.val = function (value) {
var i = $(this);
if (value === undefined) {
return (i.realval() === i.attr(‘title’)) ? ” : i.realval();
} else {
return i.realval(value);
}
}})(jQuery);
just small improvement.
With the above code, the text of the e-mail field does not disappear when clicking in the box and wrote your email.The code that works is this:
/**
* @author Remy Sharp
* @url https://remysharp.com/2007/01/25/jquery-tutorial-text-box-hints/
*
* better val() method added by Matt Chisholm, 2009/07/27
* https://glyphobet.net/blog/essay/878
*/(function ($) {
$.fn.hint = function (blurClass) {
if (!blurClass) {
blurClass = ‘blur’;
}return this.each(function () {
// get jQuery version of ‘this’
var $input = $(this),// capture the rest of the variable to allow for reuse
title = $input.attr(‘title’),
$form = $(this.form),
$win = $(window);function remove() {
if (this.value === title && $input.hasClass(blurClass)) {
if ($input.val() === title && $input.hasClass(blurClass)) {
$input.val(”).removeClass(blurClass);}
}// only apply logic if the element has the attribute
if (title) {
// on blur, set value to title attr if text is blank
$input.blur(function () {
if (this.value === ”) {
$input.val(title).addClass(blurClass);
}
}).focus(remove).blur(); // now change all inputs to title// clear the pre-defined text when form is submitted
$form.bind(“submit”,remove);
$form.submit(remove);
$win.unload(remove); // handles Firefox’s autocomplete
}});
};$.fn.realval = $.fn.val;
$.fn.val = function (value) {
var i = $(this);
if (value === undefined) {
return (i.realval() === i.attr(‘title’)) ? ” : i.realval();
} else {
return i.realval(value);
}
}})(jQuery);
I hope it can help someone in the same situation as me!
Excellent!
Yes but the slideshow on home page don’t work now!
Mr Williamson, can you please help me with this code, the slideshow doesn’t work now! it’s out of my competences!
It seem, if I remove this line:
if (this.value === title && $input.hasClass(blurClass)) {then the slideshow work, but the error message reappearing…
I do not know what to do …You have probably caused a javascript error.
Make sure that when you remove the opening { you also remove the closing }.
and I got the email overview not contain images, ok I let fall!
No email problem is… another problem, this thread is solved…
Thanks you very much your help Williamson
- The topic ‘Password required in ckeckout page!’ is closed to new replies.