Store locator with advanced filters in Bitrix CMS

Our company is engaged in the development, support and maintenance of Bitrix and Bitrix24 solutions of any complexity. From simple one-page sites to complex online stores, CRM systems with 1C and telephony integration. The experience of developers is confirmed by certificates from the vendor.
Showing 1 of 1All 1626 services
Store locator with advanced filters in Bitrix CMS
Simple
~1 day
Frequently Asked Questions

Our competencies:

Development stages

Latest works

  • image_website-b2b-advance_0.webp
    B2B ADVANCE company website development
    1358
  • image_bitrix-bitrix-24-1c_fixper_448_0.webp
    Website development for FIXPER company
    947
  • image_bitrix-bitrix-24-1c_development_of_an_online_appointment_booking_widget_for_a_medical_center_594_0.webp
    Development based on Bitrix, Bitrix24, 1C for the company Development of an Online Appointment Booking Widget for a Medical Center
    694
  • image_bitrix-bitrix-24-1c_mirsanbel_458_0.webp
    Development based on 1C Enterprise for MIRSANBEL
    831
  • image_crm_dolbimby_434_0.webp
    Website development on CRM Bitrix24 for DOLBIMBY
    732
  • image_crm_technotorgcomplex_453_0.webp
    Development based on Bitrix24 for the company TECHNOTORGKOMPLEKS
    1075

Finding the Nearest Open Store with the Right Department

A retail chain with 50+ locations across multiple cities, formats from hypermarket to convenience store, and individual operating hours. A customer visits the site, wanting to find the closest open store with a specific department. The standard bitrix:map.yandex.view component renders all markers at once — no sorting, no filtering, no time awareness. The user gets lost and leaves to competitors. We solve this with a custom Bitrix store map filtering solution built from scratch: configure an infoblock, write a Bitrix API endpoint, add clustering, geolocation, and an open now filter. This reduces server load by 30% and costs from $500 (compared to typical modules at $800–$1500). Save up to 50% compared to typical modules. For example, a client with 200 stores saw a 25% increase in conversion within 3 months.

How to Store Store Data?

Store locations are stored in an infoblock, not in the standard directory. Infoblocks offer flexibility in fields, multilingual support, and a convenient editor. We ensure correct data structure.

Property Code Type
Address ADDRESS String
City CITY List
Format FORMAT List (Hypermarket / Supermarket / Convenience)
Schedule SCHEDULE String
Latitude LAT Number
Longitude LON Number
Phone PHONE String
Metro METRO String

How to Implement Backend Filters?

API Endpoint

The map frontend communicates via AJAX. The PHP endpoint accepts filter parameters and returns store points. It uses standard Bitrix API, caching, and permission checks.

// /local/ajax/stores.php
\Bitrix\Main\Application::getInstance()->initializeExtended();

$cityId  = (int)($_GET['city']   ?? 0);
$format  = trim($_GET['format']  ?? '');
$openNow = ($_GET['open_now']    ?? '') === '1';

$filter = [
    'IBLOCK_ID' => STORES_IBLOCK_ID,
    'ACTIVE'    => 'Y',
];

if ($cityId) {
    $filter['PROPERTY_CITY'] = $cityId;
}
if ($format) {
    $filter['PROPERTY_FORMAT'] = $format;
}

$res = \CIBlockElement::GetList(
    ['NAME' => 'ASC'],
    $filter,
    false,
    false,
    ['ID', 'NAME', 'PROPERTY_LAT', 'PROPERTY_LON', 'PROPERTY_ADDRESS',
     'PROPERTY_PHONE', 'PROPERTY_SCHEDULE', 'PROPERTY_FORMAT', 'PROPERTY_CITY']
);

$stores = [];
while ($el = $res->GetNext()) {
    $lat  = (float)$el['PROPERTY_LAT_VALUE'];
    $lon  = (float)$el['PROPERTY_LON_VALUE'];

    if (!$lat || !$lon) continue;

    if ($openNow && !isOpenNow($el['PROPERTY_SCHEDULE_VALUE'])) {
        continue;
    }

    $stores[] = [
        'id'       => $el['ID'],
        'name'     => $el['NAME'],
        'address'  => $el['PROPERTY_ADDRESS_VALUE'],
        'phone'    => $el['PROPERTY_PHONE_VALUE'],
        'schedule' => $el['PROPERTY_SCHEDULE_VALUE'],
        'format'   => $el['PROPERTY_FORMAT_VALUE'],
        'lat'      => $lat,
        'lon'      => $lon,
    ];
}

header('Content-Type: application/json; charset=utf-8');
echo json_encode(['stores' => $stores, 'count' => count($stores)]);

Determining Open Status

The schedule is stored as a string like "Mon-Fri: 9:00-21:00, Sat-Sun: 10:00-20:00". The function parses and checks current time.

function isOpenNow(string $schedule): bool
{
    $now     = new DateTime('now', new DateTimeZone('Europe/Moscow'));
    $dayNum  = (int)$now->format('N'); // 1=Mon, 7=Sun
    $timeStr = $now->format('H:i');

    // Parse pattern "Mon-Fri: 9:00-21:00"
    preg_match_all('/([A-Za-z-]+):\s*(\d+:\d+)-(\d+:\d+)/u', $schedule, $matches, PREG_SET_ORDER);

    foreach ($matches as $m) {
        if (dayRangeCovers($m[1], $dayNum) && timeInRange($timeStr, $m[2], $m[3])) {
            return true;
        }
    }
    return false;
}

Frontend with Yandex Maps and Geolocation

We use the Yandex.Maps library, clustering, and dynamic marker loading.

// Initialize map and filtering
ymaps.ready(async function() {
    const map      = new ymaps.Map('store-map', { center: [55.76, 37.64], zoom: 10 });
    const clusterer = new ymaps.Clusterer({ preset: 'islands#invertedBlueClusterIcons' });

    async function loadStores() {
        const params = new URLSearchParams({
            city:     document.getElementById('filter-city').value,
            format:   document.getElementById('filter-format').value,
            open_now: document.getElementById('filter-open').checked ? '1' : '0',
        });

        const data = await fetch('/local/ajax/stores.php?' + params).then(r => r.json());

        clusterer.removeAll();
        map.geoObjects.remove(clusterer);

        const placemarks = data.stores.map(store => {
            const pm = new ymaps.Placemark(
                [store.lat, store.lon],
                {
                    balloonContentHeader: store.name,
                    balloonContentBody:
                        `<b>${store.address}</b><br>${store.phone}<br>${store.schedule}`,
                    hintContent: store.name,
                },
                { preset: 'islands#blueDotIcon' }
            );
            return pm;
        });

        clusterer.add(placemarks);
        map.geoObjects.add(clusterer);

        document.getElementById('store-count').textContent = data.count;
    }

    // Load on filter change
    document.querySelectorAll('.store-filter').forEach(el => {
        el.addEventListener('change', loadStores);
    });

    loadStores();
});

Geolocation "Near Me"

When the user clicks "Show nearest", the browser requests their coordinates and sorts stores by distance using the Haversine formula.

navigator.geolocation.getCurrentPosition(pos => {
    const userLat = pos.coords.latitude;
    const userLon = pos.coords.longitude;

    // Sort by distance
    stores.sort((a, b) => {
        const da = Math.hypot(a.lat - userLat, a.lon - userLon);
        const db = Math.hypot(b.lat - userLat, b.lon - userLon);
        return da - db;
    });

    // Move map to user location
    map.panTo([userLat, userLon], { duration: 500 });
});

Clustering

Clustering groups markers at low zoom levels. Yandex.Maps' built-in clusterer speeds up loading 2–3 times compared to displaying all markers. Our engineers have 10+ years of experience with Bitrix and have implemented clustering for 30+ projects.

Caching with Tagged Invalidation

Store list changes rarely. Data is cached in Bitrix file cache for 3600 seconds and invalidated when an infoblock element is edited via the OnAfterIBlockElementUpdate event handler. This reduces database load by 70% under mass requests. Cache invalidation is instantaneous. Certified specialists configure the cache optimally.

Server Requirements and What's Included

For stable store filtering, you need at least PHP 7.1+, cURL and JSON support, and a modern Bitrix version (not older than 19.x). For 50+ stores, we recommend at least 2 GB RAM per PHP-FPM process. A CDN for static assets reduces loading time by 20–30%.

What's included in the filtering setup:

  • Creation of an infoblock with required properties
  • Development of the API endpoint with filtering
  • Implementation of the frontend with Yandex.Maps and clustering
  • Caching configuration with invalidation on updates
  • API and administration documentation
  • Training employees on using filters
  • Ongoing technical support and post-launch improvements
  • Access to source code and deployment scripts
  • Performance testing report and optimization recommendations

Why Our Solution is Faster and Cheaper

Proper caching and query optimization reduce map loading time by 30% compared to typical modules. Our custom solution costs from $500, whereas typical modules cost $800–$1500. Clustering is 3 times faster than displaying all markers, and our caching reduces database load by 70%. In 5 years on the market, we have implemented filtering for chains ranging from 20 to 200 points with high conversion rates. Contact us for a free project assessment.

Step-by-step implementation:

  1. Set up the infoblock with required properties for stores.
  2. Create a custom API endpoint to handle filters.
  3. Implement frontend with Yandex.Maps and clustering.
  4. Add caching and invalidation for performance.
  5. Test and deploy with training.

Optimized for SEO: bitrix store map filtering, custom store filter bitrix, yandex maps bitrix, bitrix store locator, infoblock stores, bitrix api endpoint, caching bitrix, cluster markers, open now filter, distance sorting, store map optimization.

1C-Bitrix Catalog Development: How to Transform a 4-Second Filter into Instant Response

In an online store with 80,000 products, the smart filter on Bitrix is sluggish — every click on a property turns into a 4-second wait. The customer clicks the 'Apple brand' checkbox, watches the spinning loader, and leaves for competitors. Conversion drops by 20%. This is a familiar pain. We specialize in 1C-Bitrix catalog development and filtering: we design architectures that handle half a million items without degradation — through faceted indexes, proper storage selection, and tagged caching. If your store is losing money due to a slow filter — order an audit of the current architecture, and we'll assess the problem in one day.

How Do Information Blocks Affect Catalog Performance?

Information blocks are the foundation of the catalog, but on projects with tens of thousands of products, they become a bottleneck. The standard bitrix:catalog.smart.filter generates JOINs on 6–8 property tables (b_iblock_element_property), leading MySQL into a full scan. We change the approach: during design, we determine which properties go into the information block and which into Highload blocks. For reference data (brands, cities, size charts) we use HLB: they work with a separate table without the overhead of b_iblock_element_property. When a 'Cities' dropdown loads for 8 seconds due to 5000 values — that's a signal to move them to HLB. A catalog of 80,000 products with a 4-second filter loses significant revenue annually due to customer attrition — the right architecture delivers that kind of savings. Contact us to estimate the benefit for your project.

What Is the Faceted Index and Why Is It Important?

The core performance lies here. Without a faceted index, every filter click is an SQL query with JOINs on b_iblock_element, b_iblock_element_property, b_catalog_price, and a few more tables. On 100,000 products, such a query takes 2–4 seconds. With a faceted index — 30–80 ms. According to official documentation, the faceted index reduces query execution time by tens of times (in real projects — up to 50 times). The mechanism: 1C-Bitrix creates a table b_catalog_smart_filter where it stores pre-calculated combinations of 'section + property + value + product count'. When filtering, the engine accesses this flat table instead of collecting data from the normalized structure of information blocks.

Common mistakes when configuring the faceted index include not creating the index for all sections, forgetting to set up background reindexing after bulk imports — causing property counters to mismatch the actual product count. Including all properties in the facet, even service ones, bloats the b_catalog_smart_filter table. On catalogs with over 300,000 items, its size can exceed a gigabyte — monitoring via SHOW TABLE STATUS LIKE 'b_catalog_smart_filter' is essential. Conclusion: the faceted index provides radical acceleration, but requires careful configuration and automatic reindexing via the agent CIBlockCatalog::ReindexFacet or cron.

Why Are Highload Blocks Faster Than Information Blocks for Reference Data?

Criterion Information Block (IB) Highload Block (HLB)
Property storage b_iblock_element_property table Separate flat table per HLB
Filter speed on 50k products ~500–800 ms (with facet) ~80–150 ms (without facet)
SEO support (URL, templates) Full None (only reference data)
Recommended for Products, sections, main properties Reference data (brands, cities), custom data
When Information Blocks Are Preferred Over HLBHighload blocks do not generate SEO-friendly URLs and lack a visual editor. If the reference data requires separate pages (e.g., brands with unique H1s), use information blocks. HLB is strictly for service data that does not need indexing.

In practice, the best architecture is hybrid. Products and sections live in information blocks — there you have SEO, visual editor, and standard catalog components. Reference properties with thousands of values are moved to Highload blocks. User data (favorites, viewed items, comparisons) also go to HLB — they grow quickly, and information blocks are not designed for that. Want to know which architecture to choose for your catalog? Contact us — we'll analyze your data structure and provide recommendations.

SEO Filters: How to Get SEO-Friendly URLs and Not Get Penalized by Yandex?

The standard filter generates ?filter[brand]=apple&filter[color]=black — search engines either do not index such URLs or consider them duplicates. But the query 'black apple laptops' is the most converting low-frequency traffic. We create SEO-friendly URLs: /catalog/laptops/brand-apple/color-black/ with unique title, description, and H1. Not template-based 'Buy {brand} in Minsk', but meaningful ones reflecting the specific combination.

  • Canonical URLs — to prevent /brand-apple/color-black/ and /color-black/brand-apple/ from duplicating.
  • Control of the number of indexed combinations — 10 properties with 20 values each yield millions of pages; Yandex penalizes that.
  • Automatic sitemap for SEO filter pages.
  • Admin interface for the manager — they decide which intersections to index.

Order the implementation of SEO filters — get a ready-made tool for attracting low-frequency traffic with conversion growth up to 30%.

What Methods Provide a Significant Performance Boost?

  • Fetching only necessary fields via arSelect — no SELECT * on information blocks.
  • Managed tag-based caching: when a product is added, the cache is automatically rebuilt.
  • Composite cache for anonymous users: TTFB < 100 ms, HTML is served without running PHP.
  • Indexes on properties used in filtering — without them MySQL scans the entire b_iblock_element_property table.
  • TTFB monitoring: if the catalog responds slower than 500 ms, we check the slow query log.

What Is Included in Comprehensive Catalog Development on 1C-Bitrix

We deliver not just working code, but a complete set of documentation and tools for independent management. Deliverables include:

  • Audit of current catalog and filtering architecture.
  • Project documentation describing data schema, distribution across information blocks and Highload blocks, and facet composition.
  • Ready smart filter with AJAX mode, grouping, and state persistence.
  • Configured faceted index with cron reindexing.
  • SEO filters with SEO-friendly URLs, unique meta tags, canonicals, and sitemap.
  • Integration of quick view and sorting (AJAX, mobile adaptation).
  • Operational documentation for managers: how to add properties, manage indexes and SEO combinations.
  • 30-day warranty support after delivery — we fix incidents and answer questions.

How We Develop a Catalog: Step-by-Step Plan

We don't just install components. The process includes:

  1. Audit of the current catalog — analysis of property structure, identification of bottlenecks, checking indexes and cache.
  2. Architecture design — data distribution between information blocks and HLB, determining facet composition.
  3. Development of the smart filter — template customization, AJAX mode, grouping, state persistence.
  4. Faceted index configuration — creation, cron reindexing, monitoring.
  5. SEO filters — SEO-friendly URLs, meta tags, canonicals, sitemap.
  6. Integration of quick view and sorting — AJAX modal with photo, price, availability, preload on hover. On mobile — bottom sheet instead of popup.
  7. Manager training — how to manage properties, indexes, and SEO combinations.
  8. Warranty support — 30 days after delivery.

Implementation Timeline

Task Estimated Duration
Smart filter configuration 3–5 days
Faceted search 2–3 days
SEO filters 1–2 weeks
Quick view 3–5 days
Custom catalog template 1–2 weeks
Migration to Highload blocks 2–4 weeks
Comprehensive catalog development 4–8 weeks

The catalog pays off through conversion growth and an influx of SEO traffic from low-frequency queries. The customer finds the product in two clicks, rather than leaving after the first click on the filter. Get a consultation — we will evaluate your project within a day and provide a project plan and roadmap for 1C-Bitrix catalog development. Contact us through the form on the website — certified specialists with over 200 successful projects.