feat: temp password in emails + WC page redirects to SPA
1. Temp password for auto-registered users:
- Store password in _woonoow_temp_password user meta (CheckoutController)
- Add {user_temp_password} and {login_url} variables (EmailRenderer)
- Update new_customer email template to show credentials
2. WC page redirects to SPA routes:
- Added redirect_wc_pages_to_spa() in TemplateOverride
- Maps: /shop → /store/#/, /cart → /store/#/cart, etc.
- /checkout → /store/#/checkout, /my-account → /store/#/account
- Single products → /store/#/products/{slug}
3. Removed shortcode system:
- Commented out Shortcodes::init() in Bootstrap
- WC pages now redirect to SPA instead
This commit is contained in:
@@ -196,12 +196,15 @@ Your account is ready. Here\'s what you can do now:
|
||||
✓ Easy returns and refunds
|
||||
[/card]
|
||||
|
||||
[card type="warning"]
|
||||
**Important:** Please set your password to access your account:
|
||||
[card type="success"]
|
||||
**Your Login Credentials:**
|
||||
|
||||
[button url="{set_password_url}" style="solid"]Set Your Password[/button]
|
||||
📧 **Email:** {customer_email}
|
||||
🔑 **Password:** {user_temp_password}
|
||||
|
||||
This link expires in 24 hours. If expired, use "Forgot Password?" on the login page.
|
||||
[button url="{login_url}" style="solid"]Log In Now[/button]
|
||||
|
||||
We recommend changing your password in Account Settings after logging in.
|
||||
[/card]
|
||||
|
||||
[button url="{shop_url}" style="outline"]Start Shopping[/button]
|
||||
|
||||
Reference in New Issue
Block a user