Jump to content

How to disable emailExist Check during prestashop 1.4 registration


Recommended Posts

I tried to turn the customerExists function to dummy function by returning always false

static public function customerExists($email, $return_id = false, $ignoreGuest = true)
   {
        return false;
   }



but not such luck there. The ajax query in order-opc.js returns error specifically this one

 error: function(XMLHttpRequest, textStatus, errorThrown) {alert("TECHNICAL ERROR: unable to save account \n\nDetails:\nError thrown: " + XMLHttpRequest + "\n" + 'Text status: ' + textStatus);}



in my script it's app. line 613

I am doing special kind of checkout process where every customer can add only one product to order and cannot reuse his login credential again, but I need them to be abble to shop again, therefore register again with the same email. Btw. I disabled the error checking on line app. 55 and 139 in AuthController.php so it goes straight to customer addition

Link to comment
Share on other sites

I'm experiencing the same issue.

 

Anyone knows how to fix it?

 

Using Guest Login and One-Page CheckOut on PS 1.4.3

 

I read it's an ajax issue. Is there a way to avoid any ajax verification?

 

 

 

=========== EDIT ============

 

I found out that the Ajax error is related to the country validation.

Is there any way to avoid country validation, once I'll only reach people of my very own country? For Guest Login, COUNTRY information is also required.

All other fields can be hidden.

 

Even if I try to HIDE (display: none) the COUNTRY select, the error appears.

Link to comment
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...