Jump to content

Changing fields in Instant Checkout


yulyan4i4ek

Recommended Posts

Hi. Maybe someone knows, what to do? I try to make instant checkout without required field "email". So people should order products just typing phone number. I changed some files:

 

1. authentication.tpl: <div id="opc_account_form" style="display: block; "><p class="text">...</p></div> Here I removed "required" from tag <p> for email field.

2. order-opc-new-account.tpl: <p class="text"></p>. And here I removed the same required attribute. 

 

So, now when I try to order with Instant Checkout, the email field is not required, but in 1 step "authorization" pops up an error message with asking to type email. 

Link to comment
Share on other sites

PrestaShop's core has been written with the email address being required, so it's not so easy to do. You'd have to override controllers/front/AuthController.php and controllers/front/OrderOpcController.php to remove the email validation. But even if you do that, I think PrestaShop will likely break in other areas. It's better to leave the email address required.

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...