0

Is it possible to sort the order of email field at the top of the page after lastname field in shipping form? Is there any way to bring remove login part in checkout page and bring email field after last name field?

2 Answers 2

0

You can disable the Login From Checkout. Override email.phtml file in your theme.

app/design/frontend/Vendor_name/Module/Magento_Checkout/web/template/form/element/email.html

Comment Or Remove Following Span from that.

<!-- <span class="note" data-bind="fadeVisible: isPasswordVisible() == false"> -->
5
  • Thanks for the reply. This will remove login part but how to sort this email field after last name field?
    – Pavithra
    Commented Dec 25, 2018 at 9:27
  • You can not move that email field after LastName, because there are 2 different forms, One for Email & Password & another for Shipping Address. If you want to add Email field after LastName, Then Add New Field via Layout Processor. Commented Dec 25, 2018 at 9:31
  • Have you got it? Commented Dec 25, 2018 at 11:00
  • Yes. Got it. But how to remove validation for email field?
    – Pavithra
    Commented Dec 25, 2018 at 11:47
  • Email field is required to place order. we can not set it to be empty. Commented Dec 25, 2018 at 11:49
0

For the short order form field you should use following way in XML file

app/code/Vendor/Checkout/view/frontend/layout/checkout_index_index.xml

<item name="lastname" xsi:type="array">
    <item name="sortOrder" xsi:type="string">20</item>
</item>

For more reference Click here

I hope it helps!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.