Problem: Customer SPA not loading in 'full' mode Root Cause: In full mode, SPA loads on WooCommerce pages without shortcodes, so there's no #woonoow-customer-app div for React to mount to Solution: Inject mounting point div when in full mode via woocommerce_before_main_content hook Changes: - Added inject_spa_mount_point() method - Hooks into woocommerce_before_main_content when in full mode - Only injects if mount point doesn't exist from shortcode Result: ✅ Full mode now has mounting point on WooCommerce pages ✅ Shortcode mode still works with shortcode-provided divs ✅ Customer SPA can now initialize properly
14 KiB
14 KiB