Jump to content
samz

How to fix Bonjour {firstname} {lastname}

Recommended Posts

How to fix

Bonjour {firstname} {lastname}

Thank you in advance and regards,

20201004-192237.PNG

20201004-202019.PNG

Share this post


Link to post
Share on other sites

Provide me the following files located here:

'yourstore\mails\en\order_conf.html'
and
'yourstore\mails\fr\order_conf.html
 

Share this post


Link to post
Share on other sites

@samz These files are correct.

Can you show the same files but from your theme directory yourstore\themes\classic\mails\fr\order_conf.html

Share this post


Link to post
Share on other sites

I dont have this folder: \themes\classic\mails

20201005-191946.PNG

Share this post


Link to post
Share on other sites

Hey,

You can find a bug-fix here:

 

  • Thanks 1

Share this post


Link to post
Share on other sites
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 by Steve Lorenzo
tested more, found results (see edit history)

Share this post


Link to post
Share on other sites

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

  • Thanks 1

Share this post


Link to post
Share on other sites

Add this script in this file: /themes/classic/assets/js/custom.js

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More