Auto-ordering on Horoshop (frontend + backend)
An auto-order module was developed for an online store built on the Horoshop platform. The solution works as a standalone frontend widget embedded in the store theme, combined with a backend handler. On the product page, a dynamic “Auto Order −12%” button is displayed based on business rules such as brand, product type, and SKU format.
The frontend uses lazy loading for both logic and styles, works reliably with SPA navigation and product variant changes, collects cart data, calculates discounts, and persists state in localStorage. Delivery selection is implemented via the Nova Poshta widget (iframe + postMessage) with normalization of the selected data.
The backend receives the auto-order payload, performs validation, enriches and normalizes delivery data (branch, parcel locker, or courier), stores the request in the database, and submits the order to the CRM. Key events and processing statuses are logged to a Telegram chat via a bot for real-time monitoring.
#javascript #NodeJS #Хорошоп #ecommerce #Frontend #Backend #telegrambotapi #HTML/CSS/JavaScript
The frontend uses lazy loading for both logic and styles, works reliably with SPA navigation and product variant changes, collects cart data, calculates discounts, and persists state in localStorage. Delivery selection is implemented via the Nova Poshta widget (iframe + postMessage) with normalization of the selected data.
The backend receives the auto-order payload, performs validation, enriches and normalizes delivery data (branch, parcel locker, or courier), stores the request in the database, and submits the order to the CRM. Key events and processing statuses are logged to a Telegram chat via a bot for real-time monitoring.
#javascript #NodeJS #Хорошоп #ecommerce #Frontend #Backend #telegrambotapi #HTML/CSS/JavaScript