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:
@@ -45,7 +45,7 @@ class Bootstrap {
|
||||
|
||||
// Frontend (customer-spa)
|
||||
FrontendAssets::init();
|
||||
Shortcodes::init();
|
||||
// Note: Shortcodes removed - WC pages now redirect to SPA routes via TemplateOverride
|
||||
TemplateOverride::init();
|
||||
new PageAppearance();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user