Requests have become more useful for the sales department: advertising tags, consent for data processing, Telegram notifications, and a lead in Bitrix24, history and responsible person, plot reservation with a deadline. New features include plot comparison, price history, a CSV price list, microdata, and a feed for Yandex Real Estate.
Requests
The request saves advertising tags (utm_source, utm_medium, utm_campaign, utm_term, utm_content) and the source of the transition. Tags are remembered in the browser from the first visit, so a request sent after navigating through several pages knows where the visitor came from.
Consent for processing personal data is recorded with a date and text, including a link to the privacy policy. The policy address is set in the settings, on the "Requests" tab.
A visitor who provides an email receives a confirmation email for the request (email event XLOGIC_COTTAGESITE_REQUEST_CLIENT; the template can be modified). This can be disabled in the settings.
A new request can be sent to Telegram: specify the bot token and chat in the settings. If the fields are empty, messages are not sent.
A new request can create a lead in Bitrix24: specify the incoming webhook address of the portal or enable lead creation in the CRM module of this site. Advertising tags are included in the lead. The xlogic.cottagesite:OnAfterRequestAdd event continues to work as before; its data now includes tags, the page address, and the site identifier.
The request list now includes filters by period and responsible person, columns for "Responsible Person" and "Source", CSV export (opens in Excel), and the ability to assign a responsible person to a single request or a group of requests.
In the request card, tags, source, consent, and change history are visible: who and when changed the status, responsible person, or manager comment.
Plot Reservation
The plot request card now has a "Reserve" button with a duration in days. The default duration is set in the settings (from 1 to 60 days).
A reserved plot receives the status "Reserved". On the site and on the master plan, it shows "Reserved until dd.mm.yyyy" (date display can be disabled in the settings).
When the deadline expires, the module agent returns the plot status to 'Available'. Plots sold or manually modified before this deadline remain untouched.
Plots and Master Plan
Plot comparison: The 'Compare' button on the card and plot page allows comparing up to 6 plots. A table is displayed on the 'Plot Comparison' page, and the list can be sent to a manager in a single request. The selection is stored in the visitor's browser.
Price and status history: Every price or status change for each plot is recorded. The page with the price chart is accessible via the 'Prices and statuses' link on the 'Plot Statuses and Prices' page.
Plot price list (CSV): In the 'Cottage Settlement' menu, all plots can be exported and a modified file uploaded. Plots are identified by number; their status, price, and area are updated. A preview of changes is shown before applying them; new plots are not created.
In the master plan editor, plots not marked on the plan and areas not linked to a plot are displayed. The 'Link areas by number' button functions correctly.
SEO and Analytics
schema.org microdata: The plot page is described as a product with an offer (price, availability), and the main page as an organization. The currency code is set in the settings.
For the plots and house projects information blocks, header and description templates are defined upon installation (in the 'SEO' tab of the information block). If templates are already defined, they remain unchanged.
Feed of available plots for Yandex Real Estate: The address is /feed/yandex-realty.php. It is enabled in the settings on the 'SEO and Analytics' tab.
Yandex Metrica goals (xcs_request_open, xcs_request_sent, xcs_compare_add) and dataLayer events for Google Analytics: Enter the counter number in the settings.
Plots in sitemap.xml: Enable the plots information block in the Bitrix sitemap settings (Marketing, Search Engine Optimization).
Database update
No manual actions are required. The update adds columns to the applications table and three tables: application history, bookings, and plot history. Existing data remains unchanged. A mail event for visitors is added, new settings receive default values, and a booking agent is registered.
Previously created sites
The admin panel, components, and scripts are updated for all sites.
The site template and master pages are updated only for new sites. On sites created earlier, the "Compare" button, the "Comparison" link in the header, the /compare/ page, plot microdata, and new headings will appear after copying files from the master folder (install/wizards/xlogic/cottagesite/site) into the template and the site root.
The new application form (advertising tags, link to the policy) works immediately.
Compatibility
The application form script, as well as the site plan script and styles, have changed. If you have overridden them in your site template, check the functionality of the form and the site plan after the update.