2026-11-25 · aogl.cn dev notes · 阿格(niego)
A Self-built Shop CMS: Pages, Orders, Payments, Members and Themes in One Panel
The complete build log behind a shared power bank site
I recently took on a website project for a shared power bank brand (LITAPOWER): a bilingual front-end site plus an admin panel that manages pages, products, orders, payments and members. Off-the-shelf CMSes felt either too heavy or too costly to hack around, so I built a lightweight CMS + shop admin from scratch. This post walks through the feature map and the key trade-offs.
Page management: blocks + visual editing
Every page (home, products, blog, about, cases, contact...) is assembled from blocks. Each page is a card with a cover preview, language coverage badges (zh-CN / en) and update time; add, edit, duplicate, hide and delete are all supported, with a recycle bin for mistakes. "Visual edit" jumps straight to the live page.

Content: products / cases / news
Products, cases and news share one content engine: card-style management with categories, tags, translation-status badges, drag-to-sort, preview and recycle bin. Duplicate a template product and swap the assets to launch a new item quickly.

Orders and payments
Orders use an SO numbering scheme with filtering by number, title or email. Money-related actions (refunds, closing) are centralized in the payment module, while product content lives in product management.
Payments support built-in pay, Alipay (app / mobile web / desktop web), WeChat Native, Stripe (cards / Apple Pay) and PayPal, all in sandbox for now. The panel runs T+1 reconciliation, pulls per-channel transaction records and closes unpaid orders in bulk; reconciliation also ships as a CLI script for cron.


Members
Members register by email or phone, with levels, points and spend statistics computed from shop_order joins. Bulk enable/disable, VIP promotion, point adjustments and mail blasts are built in; members and orders import/export via CSV.

Data health center
The admin doesn't just stack features — it health-checks itself: theme health, package consistency, render signature, data status (page cards / content items / language coverage), message backlog, upload quotas and log anomalies, all summarized into cards with one-click shortcuts.

Theme system
Themes import as zip packages with pre-checks to keep broken packages out of production; templates load only from the fixed theme directory. Two themes ship today, switchable in one click and exportable as backups.

Trade-offs worth noting
- Plain PHP rendering + blocks: no framework; deployment is copying files and importing a database.
- Permissions and audit: single admin entry, role/permission flags, full audit logging plus access-log analysis.
- Multi-language content layer: bilingual (zh-CN / en) today; adding languages touches content only.
- Money operations isolated: reconciliation and refunds live in a dedicated payment module with per-channel traces.
The live site is at shop.niegoweb.com — the shared power bank site you see there runs on this very CMS. Next up: finer-grained visual editing and production payment channels, followed by a dedicated post on the T+1 reconciliation system.