0

I have enable guest checkout. So when a customer clicks on the checkout button in the cart page then a popup opens, like seen in the screenshot below:

Popup

My goal is to add a click event listener to the "Create Account" button, to show a container which contains the user account registration form, if the button is clicked, instead of redirecting to the registration site.

How can achieve that?

Any help is appreciated.
Thanks.

2
  • Please refer to the extension. I hope this may help you
    – Pratik Oza
    Aug 26, 2020 at 6:37
  • 1
    @PratikOza thanks for information but i have used third party social login all-ready i need popup only on cart page when click on create an account Aug 26, 2020 at 6:55

1 Answer 1

1

You can add a hidden create account form , to that popup body and on click of create account hide main body of create account section and show that form .

You can override the template in account/authentication-popup-from-minicart.phtml in theme or your module .

3
  • Thanks for information can you add code here ? Thank you!! Aug 26, 2020 at 7:44
  • 2
    @RakeshDonga code for adding create account form ? you add block to template file and do getChildHtml() like it is done on create account page in customer/view/frontend/layout/customer_account_create.xml Aug 26, 2020 at 8:04
  • magento.stackexchange.com/questions/320795/… Please have a look Aug 26, 2020 at 8:24

Your Answer

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

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