Payments are experiencing issues due to temporary restrictions in Russia. If your payment does not go through, please submit a support request.Our support team is available 24/7 — we are always here to help with hosting and server issues.We are now accepting requests for dedicated server rental and colocation services in our data center.Reminder: we recommend enabling backups for additional data protection.A new VPS/VDS lineup with NVMe storage and improved performance is now available.Maintenance work on some servers has been completed. All services are operating normally.

MODULE FOR 1C-BITRIX

CityWeb

Delivery cost by zones

The module calculates delivery costs using Yandex Maps data, based on the district (zone) and distance from the warehouse. To configure, create shipping points, define delivery zones, set rates for each zone, and activate the module.

Technical details

Published
27.04.2018
Updated
26.08.2022
Version
1.6.2
Installed
500 - 999 times
Suitable editions
Small Business, Business
Responsiveness
Yes
Composite Support
Yes
Compatible with Sites24
No
Developer
CityWeb

What this solution does

The module calculates delivery costs using Yandex Maps data, based on the district (zone) and distance from the warehouse. To configure, create shipping points, define delivery zones, set rates for each zone, and activate the module.

:)

Delivery Zones

The core feature of the module is delivery zone management. Users define geographic areas within which the store accepts orders; delivery outside these boundaries is not supported.

Creation and Editing

Zone boundaries are defined on Yandex Maps using polygon shapes.

Data Import

To simplify zone setup, the system supports importing data from GEO JSON files. Users can import multiple zones at once or load data for a specific zone. The import algorithm scans the file for all geometry objects with the property type = "Polygon". During the import process, users can select which specific areas to add.

Pricing Configuration

The module supports flexible pricing models:

- Fixed delivery fee for the entire zone (minimum price);

- Per-kilometer pricing, where distance is calculated based on the actual route;

- Minimum order value threshold required to activate the zone;

- Threshold setting for free delivery based on order value.

Additional Features

- Linking delivery zones to specific warehouses: cost calculation is performed only from selected warehouse locations;

- Custom color assignment for each zone;

- Ability to temporarily deactivate zones that are not currently in use.

Warehouse Modes

The module supports two warehouse operation modes, the first being the store's own warehouses.

2. Custom Warehouses

Modes differ only in where warehouse data is stored: custom warehouses are kept in the module's database table. This data is required to calculate the nearest warehouse relative to the location specified by the user.

Display Templates

The map is rendered using the ctweb:yandexdelivery component.

Two templates are available by default:

1. .default — can be placed on any page. Multiple component instances may coexist on a single page.

2. order — automatically added to the checkout page of the sale.order.ajax component. To configure parameters for the order template, use the parameters.php file within the component's template directory.

Customization

You may copy a template and modify its markup and styles as needed. The only requirement is to preserve specific IDs assigned to tags; these are documented in component.php and at the top of the template. Standard templates include examples of events to which you can attach custom functions. Additionally, you can extend the BX.Ctweb.YandexDelivery.Controller class in the template's script.js file (an example is provided in the order template).

Price Calculation

The module exposes the OnYandexDeliveryCalculatePrice($distance, $regionID, $storageID) event to allow modification of the calculation result.

In the module settings, you can specify an order property to store information about the point selected by the user. Create a text-type order property where the warehouse name, point address, and point coordinates will be saved.

To customize the delivery calculation logic, copy the file /bitrix/modules/ctweb.yandexdelivery/tools/delivery_ctwebyandexdelivery.php to the directory /bitrix/php_interface/include/sale_delivery/.

If “Delivery cost by zones” fits the task, General iT can install the module, configure it and verify the result in the project.

UPDATE HISTORY

What’s new

45 releases
1.6.2 (26.08.2022)Latest update

Now, after searching by address, the point is set automatically

1.6.1 ()

FIX: Fixed errors on PHP8

FIX: Fixed encoding of some files

1.6.0 ()

FIX: Fixed an issue with the component after the previous update

1.5.9 ()

CHANGE: Now, when selecting a delivery point outside the zone, an order can be placed

1.5.8 (18.12.2020)

Fixed an error with connecting multiple "ctweb:yandexdelivery" components on the page

YOUR PROJECT INFRASTRUCTURE

A home for your website

BEFORE YOU ORDER

Let’s go through the details.

What does the price cover?
The displayed price covers the solution itself. Platform licensing, installation and customisation are checked separately. If the page offers bundles, select the required option before submitting a request.
How do I check compatibility?
Compare the supported editions and solution version in the technical details with your project. Before installing on a live website, we recommend making a backup and checking the solution in a test environment.
Is there a trial?
The developer lists a trial of 21 days. The trial button opens the installer in your website control panel. Check the required features and compatibility before purchasing.
How much does this solution’s renewal cost?
The current renewal price is 5,000 ₽. Before you order, a manager will confirm the renewal period and whether it applies to your licence.
Can you help with implementation?
We can help install the module, check its settings and verify how it works in your project. Compatibility with other customisations and the scope of work are assessed before we begin.

GENERAL iT

Let’s discuss your project

Получатель: ООО «Дженерал Ай Ти Рус»

1C-BITRIX

Install solution

Enter a domain with or without https://. The installer will open in your website control panel in a new tab.

Solution screenshots

Solution screenshot