
YandexMapsLocator
Store locator on Yandex Maps for MODX 3. Free: map and search. Pro: open now, MiniShop3, CSV, and REST
- MODX 3
- PHP 8.2


| Event | When |
|---|---|
OnYandexMapsLocatorRegisterFilters | Building the filter registry |
OnYandexMapsLocatorRegisterFeatureProviders | Registering Pro and third-party providers |
OnYandexMapsLocatorBeforeStorePrepare | Before finalizing the Store DTO |
OnYandexMapsLocatorAfterStorePrepare | After building the Store DTO |
OnYandexMapsLocatorBeforeSearch | Before the query (snippet and REST) |
OnYandexMapsLocatorAfterSearch | After loading the list |
OnYandexMapsLocatorSerializeLocation | Before location fields in REST v1 |
OnYandexMapsLocatorBeforeApiResponse | Before REST JSON (version, action, payload) |
In a plugin, return the modified Store via $modx->event->output($store) or assign the object to store (by-ref in Before/After StorePrepare).
OnYandexMapsLocatorBeforeSearch runs for both the snippet and REST. In REST, ApiSearchGuard runs once before search(). The event runs after the guard and sees criteria by-ref: a plugin can set where and product_id again. There is no second guard pass.
| Package | Events |
|---|---|
| Free | OnDocFormSave, OnSiteRefresh, OnDocFormRender (mgr geocoding) |
| Pro | RegisterFeatureProviders, RegisterFilters, BeforeStorePrepare (TZ, products, amenity, brand), AfterStorePrepare, SerializeLocation, OnDocFormRender (schedule preview) |
Extension contract: Extension API.