Part 16 of the GoWind series. Most e-commerce platforms make "going global" an add-on: bolt-on translation plugins, currency converters as afterthoughts, your data in someone else's cloud. GoWind Shop starts from the other end — an enterprise-grade, API-first storefront built for worldwide consumers, with multilingual content as a first-class citizen and multi-currency display natively, MIT-licensed and self-hostable.
Multilingual is a data model, not a plugin
Products and categories are managed with multiple languages as first-class citizens; the storefront presents content in the visitor's language automatically. Product editing has translation tabs, so operators maintain details language by language — no separate site per language, no sync scripts.
Money works the same way: prices display in multiple currencies to match each region's browsing habits, but settle in a single currency — so operations and finance reconcile against one ledger, not N.
The promotions engine, done properly
Flash sales and group buying are where DIY shops fall over, so this is the part worth studying:
- Oversell-proof flash sales — row-level locking under the purchase, with per-user purchase limits
- Group buying — N-buyer groups; if a group doesn't fill by deadline, refunds issue and the activity closes automatically — no admin janitorial work
- Unified pricing priority — group buying, flash sales, and special pricing share one pricing priority ladder, stacking with coupons up to a configurable cap. Discount exposure stays under control instead of compounding silently
Coupons (templates / issuance / redemption / refund-return), member points (purchase, check-ins), and member levels tiered by cumulative payment complete the retention loop.
Payments engineered for "boring reliability"
WeChat Pay (Native/H5) and Alipay out of the box, with the parts most implementations skip:
- Two-phase payment — payment intent and payment callback as separate phases, so payment state never half-exists
- Self-healing reconciliation — inconsistencies repair automatically instead of surfacing as support tickets
- Refund drift detection — anomalous refund patterns alert automatically; funds stay guarded
- Fund isolation — the deployer collects with its own merchant credentials; the platform software never touches money. Combined with on-premise deployment, that's the compliance story in one sentence
Automation everywhere an order can stall
- Unpaid orders cancel automatically on timeout
- Receipt confirms automatically when delivery confirmation goes overdue
- After-sales is a closed loop: buyer files → approval → channel refund + inventory restock + points reversal + in-site notification, all automatic
- Key order milestones notify buyers in-site across the whole lifecycle
The AI shopping assistant
A floating assistant on the buyer side takes natural-language questions and answers with real capabilities — a tool-loop that can find products, check prices, check orders, and check offers, not just "chat about shopping". Two supporting AI features: query rewriting (natural language → search keywords, improving hit rates) and comment spam filtering. If you've read the framework's AI plugin post, this is that plugin layer doing product work.
Stack & try it
go-kratos microservices, Protobuf-first contracts, PostgreSQL + OpenSearch (full-text search with suggestions) + Redis. Admin console: Vue3 + Element Plus. Storefront: Nuxt static site (SSG), 20 pages, light/dark themes, mobile-first with fixed bottom nav. Deploys via Docker Compose with nginx same-origin HTTPS and PM2.
- Storefront demo: shop.gowind.cloud
- Admin demo: admin.shop.gowind.cloud
- Source (MIT): github.com/tx7do/go-wind-shop
- Feature manual: gowind.cloud/en/shop/features.html
Open source, commercial use fine. If you run a storefront today, the two questions we'd love answered by real deployments are pricing-priority edge cases and reconciliation corner cases — issues are open.
Next in the series: adding AI to your Go service — three plugin paths (OpenAI, LangChainGo, Eino) with YAML config.
