How it works
Where the popup loads, what happens when a customer submits it, and how it treats screen readers, caches and languages.
What happens
- The popup is printed once in the page footer for logged-out visitors, hidden until it is opened.
- A trigger opens it: an account or login link, a custom selector, the shortcode, a
#siteryn-lrp-*link, or (Pro) a smart trigger. - The customer submits a form; the script checks required fields, then sends it to
admin-ajax.php. - WooCommerce does the work: the same login, registration and password-reset functions and hooks as the My Account page.
- The popup answers with a message under the heading and on each field, or signs the customer in and reloads or redirects.
Where the popup loads
On every storefront page for logged-out visitors, except the My Account page itself (it already shows WooCommerce's forms). It never loads for logged-in users, in wp-admin, feeds or embeds, or when Enable login & register popup is off.
Built on WooCommerce
- Log in accepts a username or email address and checks it with WordPress's sign-in, after WooCommerce's login hooks.
- Register creates the customer with WooCommerce, which sends its New Account email. Generated usernames and passwords and the privacy policy text follow WooCommerce's settings.
- Lost password sends WooCommerce's Reset Password email; the link opens WooCommerce's own reset form.
- The forms fire WooCommerce's form hooks, so CAPTCHA and security plugins that protect My Account protect the popup too.
Accessibility
- A real modal dialog named by the current view's heading, with focus moved inside, trapped while open and returned to the opener on close.
- Esc and the close button always close it; clicking outside does too unless you turn that off.
- Every field has a visible label. Errors set
aria-invalid, are linked to their field, and the message area is announced. - The show/hide password button says which state it is in. Shoppers who prefer reduced motion get no animation.
- Without JavaScript the forms still submit to WooCommerce's My Account page.
Performance & caching
- The stylesheet and the small, dependency-free script load only where the popup is printed; the script is deferred.
- The popup is the same for every guest, so full-page caches can store it. If a cached page is older than 6 hours, the script fetches fresh security tokens before submitting.
- Your Popup Style settings are added as CSS variables in a small inline style.
Languages
Translation-ready and right-to-left aware. With WPML or Polylang, the headings and button texts you set are translatable, and every request is answered in the page's language, including WooCommerce's emails. See Multilingual.