0

I need to remove password box after call email ajax. I don't need this functionality while backend side guest checkout setting is on.

enter image description here

  • Do you allow customer registration in your website ? – Franck Garnier Jul 27 '17 at 12:38
  • yes, but I don't want to password box in the checkout page. – Magento2 Devloper Jul 28 '17 at 5:17
3

You can overwride vendor/magento/module-checkout/view/frontend/web/js/view/form/element/email.js:83 file in your theme.

And force self.isPasswordVisible(false);

You can use this update :

    /**
     * Callback on changing email property
     */
    emailHasChanged: function () {
        var self = this;

        clearTimeout(this.emailCheckTimeout);

        if (self.validateEmail()) {
            quote.guestEmail = self.email();
            checkoutData.setValidatedEmailValue(self.email());
        }


        // this.emailCheckTimeout = setTimeout(function () {
        //     if (self.validateEmail()) {
        //         self.checkEmailAvailability();
        //     } else {
        //         self.isPasswordVisible(false);
        //     }
        // }, self.checkDelay);
        self.isPasswordVisible(false);

        checkoutData.setInputFieldEmailValue(self.email());
    },
|improve this answer|||||

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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