info@garnet-lab.com
РУССКИЙ
+7 495 414 18 36

3 minutes

Delivery and payment service in Bitrix24

Автор статьи

Глеб Антоненко

 

Let's consider the client's case and analyze in detail how the delivery and payment service is organized.

Delivery service

The company had several delivery zones, in which it was necessary to easily vary the price depending on the transport distance.

How implemented

This is how the page of the service configured by us looks like. It is implemented on the basis of Yandex.Maps.

Here you can specifyorder price, delivery time and address. This data directly affects the shipping cost.

 
Circles are zones where, starting from the Moscow Ring Road, there is a removal along these polygons. Each polygon has its own price in the settings, and accordingly, the further the zone, the higher the delivery cost.

Deal card

Now this service is built into the Deal card. Entering the address, hints from the DaData system pop up. This service knows all coordinates by addresses. After entering the data, our system determines the geofence and sets the correct price.

 
In the process of work, we did not want to be tied to external services, which is Yandex, so we made it as simple and fast as possible using API requests on the backend. The entire service is written in PHP. It was designed in such a way that it would not depend on Bitrix24 in any way, and the delivery parameters were set up easily and quickly.

Order map

Separately, we implemented an Order Map for their visual display, which allowed logistics managers to easily build delivery routes.

Payment for orders

Integration with PayKeeper

To set the payment from the order, we made an integration with the PayKeeper payment service. Now when you click on the "Link" button - the invoice is sent by mail or SMS.

 

This is what the payment page looks like

 

After payment, the check is fixed in the button of the same name

Pay with points

In addition to full payment and prepayment, the company has an additional method - payment by points. By default, the bonus system is installed by the client in the online store. The site itself is written in 1C-Bitrix: Site Management.

We synchronize data from the online store with the CRM system. Thus, information on points gets into the deal.

Promo codes

Promotional codes reduce the price for the client. By default, there is no such possibility in Deals, but we conjured and added it by creating separate rules by which we issue this promotional code.

 

In this case, synchronization with the site also plays an important role, since the very ability to issue promotional codes on it already exists by default and it was necessary that both the CRM and the site contain the same up-to-date data, especially for those cases where the first or second one comes out out of service.

 
By default, synchronization with the site is one-way, with a limited list of fields for transmission. We expanded its capabilities - we made the exchange two-way. In fact, they rewrote the code for collecting and receiving data. The mechanism itself is on the side of Bitrkis24 and works on an agent in which the trigger rule is set once a minute.
 

Have questions or need to find a solution to Your problem?

Leave a request by filling out the feedback form. Our expert will contact you as soon as possible