Skip to content

Business Logic Flows

Comprehensive documentation of all business logic flows in the Ecommercen platform. Each flow traces code paths through the legacy codebase (ecommercen/ and application/), documenting entry points, business rules, data models, and client customization points.

Platform Overview

Ecommercen is a modular monolith e-commerce platform built on CodeIgniter 3.x with a modern PSR-4 domain layer, Symfony DI container, Vue 2 frontend, and Laravel Mix asset pipeline. It specializes in Greek/European e-commerce with pharmaceutical industry integrations.

Current version: 04.102.000.000

Codebase at a Glance

MetricValue
Git history18,021 commits across 11 years (2015--2026)
Total lines of code694K+
ecommercen/ (HMVC modules)174K lines
application/ (CI layer)137K lines
src/ (modern domain + REST)110K lines
tests/112K lines
JavaScript / Vue86K lines
SCSS74K lines

Infrastructure Numbers

ComponentCount
Database tables205
Database views1 (shop_prices_view)
Database triggers0
PHPUnit tests670 (440 unit + 221 integration + 9 legacy)
REST controllers109
Scheduled jobs70+
Job queues10
Vue components273 (118 storefront + 155 admin)

Categories

Customer-Facing Flows (35 docs)

Storefront experiences: product browsing, cart, checkout, payment, customer accounts, search, blog, offers, events, maps, contact forms, cookie consent, documents, gift cards, loyalty points, AI recommendations.

Admin Flows (56 docs)

Dashboard operations: product/order/customer/category management, promotions, coupons, gift rules, SEO, attributes/tags, variations, lines, stores, vendors, suppliers, blog, sliders, audiences, gift cards, bundles, badges, language, product lists, order tags, builder, video, audit logging, tracking, vouchers, currency, metadata, reporting, settings, CMS pages, subcontent, VAT, shelf codes, review moderation, email templates, POS orders, task management, recommendation algorithms, admin newsfeed.

System Flows (33 docs)

Background jobs and infrastructure: cron framework, email notifications, order cancellation, price tracking, sitemap generation, Solr indexing, cache management, database backup, customer data jobs, loyalty points, review reminders, birthday emails, waiting list, delivery delay, PayByBank polling, bulk import, image upload, config registry, geolocation, dashboard charts, job manager. Shared patterns: MUI translations, email dispatch, file upload, circuit breaker, deferred task runner, storage abstraction, deployment architecture, client features reference.

Integration Flows (15 docs)

External services: XML feeds (19 formats), marketplace sync (Skroutz/Shopflix/Mirakl/eMAG), Google Merchant, Facebook CAPI, ERP integrations, courier APIs (17 providers), Doofinder, analytics, newsletter, SMS, content embeddings, order webhooks.

Stats

CategoryDocs
Customer-Facing (CF)35
Admin (AD)56
System (SY)33
Integration (IN)15
Flow docs139
Shared patterns8
Guidelines1
Total~148

Every flow is documented as an individual file with deep codebase-sourced content.