```
---
### Co ten kod robi
| Element | Działanie |
|--------|-----------|
| `document.activeElement === input` | Reaguje tylko gdy fokus jest w polu DIPL |
| `post_type=product` | Kieruje na wyniki WooCommerce, nie bloga |
| `encodeURIComponent` | Obsługuje polskie znaki (ą, ę, ó...) |
---
### Alternatywa – sprawdź ustawienia modułu w Divi
Otwórz moduł DIPL Ajax Search w Divi Builder → zakładka **Advanced** lub **Search Settings** – czasem jest opcja:
```
"Redirect to search page on Enter" → włącz
"Search results page URL" → wpisz URL sklepu