23kulpamens 23kulpamens - 4 months ago 45
Ajax Question

Prestashop ajax registration bug

I'm trying to run prestashop. I had already made custom theme and I have problem with registration. When somebody tries to register during checkout he receives an error:

TECHNICAL ERROR: unable to load form. Details: Error thrown: [object Object] Text status: error

I can't figure out where to search for solution. Or maybe someone know how to disable ajax registration?



I had found a solution. Most of sources told that i should turn off mobile functionality in theme. I did so, but it didn't help. So I checked form it was referencing to certain adress but AJAX request was directed to homepage.

So I'd modified AJAX request in file so it directs same place as form.

In /themes/default/authentication.tpl about line 97 there was line:

url: baseUri,

I had changed it to:

url: baseUri + 'index.php?controller=authentication',

so AJAX request goes under right address. After that I had to change some mobile authentication forms under /themes/default/mobile/authentication*.tpl , so they contains a field to enter telephone number. Everything that solved whole problem.