Case study · 2015 – 2026
Machinery configurator and quotations for a manufacturer and dealers
For an agricultural machinery manufacturer, I have been developing a configurator since 2015 in which dealers build a machine from permitted combinations of parts and get a quotation for it straight away. The system enforces technical rules, works with versions of price lists uploaded from Excel and runs in seven languages.
Brief
A sprayer consists of many optional parts – tanks, booms, chassis, axles, wheels, hydraulics and other equipment. Not every combination is technically possible: some parts exclude each other, others are mandatory, and the wheels must match the load of the machine. Meanwhile, the price list and the rules live in extensive Excel spreadsheets that change regularly.
The task was to turn this logic into an application in which dealers in the Czech Republic and abroad can put together a correct configuration without knowing the spreadsheets, and the manufacturer can keep price lists up to date without a programmer's involvement.
Solution
First I gained an in-depth understanding of the machine design logic the manufacturer had captured in spreadsheets, and then transferred it into the configurator. Afterwards I trained the dealers in using it.
- Rule-based configuration – the default machine set-up, mandatory items, parts that must not be combined, and a check of wheel load capacity based on the selected tank and chassis.
- Versioned price lists from Excel – the manufacturer uploads a price list as an Excel file, the system imports it machine by machine and keeps track of its versions and their validity.
- Quotations and orders – saved quotations with search and filters, discounts, conversion to CZK, EUR and PLN, assignment to a dealer with an e-mail notification, conversion into an order, and a change log.
- Outputs – quotations to download as PDF and a visualisation of the machine composed of images according to the selected configuration.
- Language versions – an interface in seven languages (Czech, Slovak, English, German, Polish, Hungarian, Russian) and administration of translations of price lists and items.
- Administration – management of users and roles, editing of price lists, pages, news and contacts, and company details filled in from ARES, the Czech business register.
Alongside the online application there is also an offline version of the configurator. User guides for the system are available in Czech, English and German.
Technology and architecture
The configurator runs on PHP with a MySQL database (PDO) and the Smarty templating system on top of a custom lightweight application core. Price lists are imported from Excel files using PhpSpreadsheet, PDF quotations are generated by mPDF, the machine visualisation is composed from image layers using the GD library, and e-mails are sent by PHPMailer. I manage dependencies with Composer.
Result
The configurator has been in operation since 2015 and I keep developing it – the rules and price lists change along with the production range. Dealers build machines in an application that does not allow a technically impossible combination, and they have the quotation available immediately as a PDF and in their own currency. The manufacturer updates price lists by uploading an Excel file, without retyping prices into the system by hand.