A step-by-step guide to rendering the Yandex Pay pay button and Split widget on a Bitrix product detail page — from the client-side SDK to order finalization in sale_ps_success.php. Includes a ready-to-use config, integration class, router, and server-side order handler.
The standard Swiper approach in 1C-Bitrix — inline scripts in every template.php, scattered configuration, AJAX handling via setTimeout — falls apart on the first dynamic load. We look at the SwiperManager class: three config levels, MutationObserver, a public API for complex cases, and a proper lifecycle via destroy(true, true).
I describe the difficulties that arise when editing both the complex component catalog.element and the usual one, as well as options for applied solutions
A selection of the main functions and constants used when working with Bitrix templates.
Since the beginning of CBO, many clients have had their websites hacked and infected with malicious code. We fight it
Небольшая памятка по самым необходимым на каждом проекте программам и скриптам.
We solve the standard task of speeding up the site
Once again, the task arose of building a tree-like accordion menu based on the catalog sections. When solving the problem, I wanted to minimize the number of requests, make it as fast and simple as possible, which we managed to do
Almost none of my clients are satisfied with the appearance of sale.order.ajax. Here I will describe most of the tricks that I use myself when customizing this complex component.
I describe a way to create a custom settings page in Bitrix
I often face the task of displaying the quantity of goods in warehouses. I will share my work
Quite often, when developing in Bitrix24, fragments of code remain deleted, but saved using the cache. To get rid of them, just use the BXClearCache command
Change checkboxes to select, add ajax
Subscription pop-up window with the generation of a promotional code for the first time logged in, IP restriction, saving settings in the infoblock, coupon limitation by time of use and with a second pop-up display after n days
PHPStorm light theme
Setting up automatic compression of css and js files in PHPStorm
A warning about the use of cookies is required on every website. For a long time I wanted to find an automatic solution for its output and I succeeded.
Using lazy-load to speed up websites
Reprint excellent solution for displaying beautiful custom notifications
We solve the constantly arising problem of automatic city detection in php
Often a client wants to display a map and a clickable list of objects, by clicking on which the map should smoothly change centering. I am describing my experience in creating clickable cards with the opening of the baloon.
Users love convenience. Not everyone likes the standard type of pagination. So let's help them and add a "Show more" button on the basis of which, later, by adding a small javascript handler, it will be possible to create an "endless feed".
Popup form output template with required validations. I use it constantly, I decided to describe the process to reduce the cost of my own time.
Javascript plugin without headaches and calculations organizing the right sticky effect
In every project, it becomes necessary to check the data for javascript. Most often I use the following checks
Customization of the sale_order_view.php page in Bitrix
We will use a small javascript function for declension of numeric values. As arguments, it is passed a number and an array of word forms with different numerical values.