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:
Dwindi Ramadhana
2026-01-01 16:45:24 +07:00
parent 38a7a4ee23
commit 58681e272e
5 changed files with 78 additions and 19 deletions

View File

@@ -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]