samz Posted October 5, 2020 Share Posted October 5, 2020 How to fix Bonjour {firstname} {lastname} Thank you in advance and regards, Link to comment Share on other sites More sharing options...
samz Posted October 5, 2020 Author Share Posted October 5, 2020 Hello Here are the 2 files en_order_conf.html fr_order_conf.html Link to comment Share on other sites More sharing options...
samz Posted October 5, 2020 Author Share Posted October 5, 2020 I dont have this folder: \themes\classic\mails Link to comment Share on other sites More sharing options...
Steve Lorenzo Posted October 27, 2020 Share Posted October 27, 2020 (edited) On 10/5/2020 at 10:50 PM, Crezzur said: Hey, You can find a bug-fix here: I don't think that bug-fix works to fix all the cases such error appears. I have the same errors and I don't have users with emails written in ALL CAPS (as that post mentioned above implies as being the bug). I'm interested to see a solution to this if someone can chime in, please? LATER EDIT ... I checked more thoroughly again, indeed the issue was with the capital letters anywhere in the domain part of the address. Thank you @Crezzur Edited October 30, 2020 by Steve Lorenzo tested more, found results (see edit history) Link to comment Share on other sites More sharing options...
samz Posted October 29, 2020 Author Share Posted October 29, 2020 In my case, this problem appears when the typed email is not all lowercase. This JAVASCRIPT trims and converts to lowercase the value of all email type INPUT when the focus leaves the field. So it should fix this problem: String.prototype.trim=function(){return(this.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""));} var mailA=document.querySelectorAll("input[type=email]"); for(var i=0;i<mailA.length;i++){ mailA[i].onblur=function(){ this.value=this.value.toLowerCase().trim(); console.log("["+this.value+"]"); } } Tested OK on PRESTASHOP 1.7.6.8 1 Link to comment Share on other sites More sharing options...
samz Posted October 29, 2020 Author Share Posted October 29, 2020 Add this script in this file: /themes/classic/assets/js/custom.js Link to comment Share on other sites More sharing options...
chon59 Posted June 18, 2021 Share Posted June 18, 2021 @samz would this work on 1.7.5.2 ? Thanks Link to comment Share on other sites More sharing options...
samz Posted June 18, 2021 Author Share Posted June 18, 2021 @chon069 Sorry, I don't know, I tested my JS script only on PS 1.7.6.8 It should work if this is the same bug on 1.7.5.2 Thanks and regards Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now