Skip to content
ํ”„๋กœ์ ํŠธ

์†Œ๊ฐœ

๐Ÿ›’ POS & ecommerce solution for Shops. (Woo-commerce for Python) Complete with cart and wishlist.

๋น„์ฆˆ๋‹ˆ์Šค ๋ฐ ๊ธˆ์œต

์ด ์ˆ˜์น˜๋ฅผ ์ธก์ •ํ•˜๋Š” ๋ฐฉ๋ฒ•

์ธก์ •๋œ ์Šคํƒ€ ์ฆ๊ฐ€

in 24h
0
in 7 days
0
in 15 days
-1
in 1 month
๊ธฐ๋ก ์ˆ˜์ง‘ ์ค‘

์„œ๋กœ ๊ฒน์น˜๋Š” ๊ธฐ๊ฐ„์˜ ์ˆœ์ฆ๊ฐ€๋Ÿ‰์ด๋ฉฐ ์ผ๋ณ„ ํ•ฉ๊ณ„๊ฐ€ ์•„๋‹™๋‹ˆ๋‹ค. ์ธก์ •๊ฐ’์ด ์—†์œผ๋ฉด ๋น„์›Œ ๋‘ก๋‹ˆ๋‹ค. ์Šคํƒ€๋Š” ๊ด€์‹ฌ๋„๋ฅผ ๋‚˜ํƒ€๋‚ด๋ฉฐ ํ’ˆ์งˆ์„ ๋ณด์žฅํ•˜์ง€ ์•Š์Šต๋‹ˆ๋‹ค.

README.md

Original

contribs
๐Ÿ‡ฒ๐Ÿ‡บ ๐Ÿ‡ต๐Ÿ‡ฐ ๐Ÿ‡ณ๐Ÿ‡ฌ ๐Ÿ‡ฎ๐Ÿ‡ณ ๐Ÿ‡ป๐Ÿ‡ณ ๐Ÿ‡ฌ๐Ÿ‡ญ ๐Ÿ‡ฌ๐Ÿ‡ง

First Timers Only

Discord CodeQL

ShopCube

E-commerce and POS platform built on the Shopyo Flask framework.

  • ๐Ÿ›’ cart
  • โญ wishlist
  • ๐Ÿ“‘ orders
  • ๐Ÿ“ค upload by csv
  • ๐Ÿ“Š charts
  • ๐Ÿ–Œ๏ธ theming

Installation

python3 -m venv venv
source venv/bin/activate
pip install shopcube

Then initialise:

shopcube initialise
shopcube run

Dashboard: http://127.0.0.1:5000/dashboard -- Email: [email protected], Password: admin

Production

Git clone

pip install gunicorn
gunicorn --bind 0.0.0.0:8000 shopcube.wsgi:application

For development:

pip install -e .
shopcube initialise
flask --debug run

Environment variables:

Variable Description Default
SHOPCUBE_CONFIG Environment type (production, development, testing) production
SECRET_KEY Secret key for session encryption Required
SHOPCUBE_DATA_DIR Directory for database and uploads Current directory

Features

Inventory

  • Products with barcode, images, colors, sizes, categories, subcategories, and vendors
  • Low-stock alerts with configurable thresholds
  • Stock adjustments with reason codes (manual, POS sale, return, count, PO receive)
  • Purchase orders with draft, ordered, received lifecycle; auto-updates stock on receipt
  • Vendor/supplier management with contact info
  • Physical inventory counts with variance application
  • Multi-location inventory with location management
  • Stock transfers between locations
  • Kit/bundle assembly from components
  • Cost price and margin tracking
  • Barcode label printing
  • Inventory reports (valuation, low-stock, margin)

POS

  • Product grid with category filtering, search, and barcode scanning
  • Cart with quantity controls and running total
  • Discount (percentage or fixed amount)
  • Order notes
  • Payment methods: Cash, Card, Other
  • Auto change calculation
  • Quick keys for one-tap product add
  • Transaction history
  • Sales reports by date, total, payment method
  • Returns with receipt lookup and stock reversal
  • Shift management with cash reconciliation
  • Cashier role for non-admin staff

Customers

  • Registration with email confirmation
  • Order history per customer
  • Customer groups with percentage discounts
  • Customer Lifetime Value tracking (total spent, order count, AOV)

Admin

  • Product CRUD with images, colors, sizes, vendor assignment
  • Category and subcategory management
  • Coupon management
  • Delivery and payment method configuration
  • Order management with status tracking and email notifications
  • Bulk product upload via Excel
  • Role-based access control

Security

  • CSRF protection on all POST routes
  • Admin-only access on management routes
  • Login required for all management endpoints
  • File upload type and size validation

Built on Shopyo with isolated module architecture.

E-Commerce Configuration

The shopyo_ecommerce module reads these Flask config keys. Defaults are applied automatically, override them in your config.py or instance config:

Key Default Description
SHOPYO_ECOMMERCE_URL /shopyo-ecommerce URL prefix for all ecommerce routes
SHOPYO_ECOMMERCE_CURRENCY USD ISO 4217 currency code (e.g. MUR, EUR, GBP)
SHOPYO_ECOMMERCE_SECTION_NAME Shop Section name shown in dashboard and settings
SHOPYO_ECOMMERCE_ITEMS_PER_PAGE 12 Products per page in shop listings
SHOPYO_ECOMMERCE_ENABLE_WISHLIST True Enable/disable the wishlist feature
SHOPYO_ECOMMERCE_ENABLE_REVIEWS False Enable/disable product reviews
SHOPYO_ECOMMERCE_CATEGORYPHOTOS_UPLOADSET categoryphotos Flask-Uploads set name for category images
SHOPYO_ECOMMERCE_SUBCATEGORYPHOTOS_UPLOADSET subcategoryphotos Flask-Uploads set name for subcategory images
SHOPYO_ECOMMERCE_PRODUCTEXCEL_UPLOADSET productexcel Flask-Uploads set name for product Excel imports
SHOPYO_ECOMMERCE_PRODUCTPHOTOS_UPLOADSET productphotos Flask-Uploads set name for product images
SHOPYO_ECOMMERCE_UPLOADED_CATEGORYPHOTOS_DEST static/uploads/categoryphotos Upload destination for category images
SHOPYO_ECOMMERCE_UPLOADED_SUBCATEGORYPHOTOS_DEST static/uploads/subcategoryphotos Upload destination for subcategory images
SHOPYO_ECOMMERCE_UPLOADED_PRODUCTEXCEL_DEST static/uploads/productexcel Upload destination for product Excel files
SHOPYO_ECOMMERCE_UPLOADED_PRODUCTPHOTOS_DEST static/uploads/productphotos Upload destination for product images

Example:

class Config:
    SHOPYO_ECOMMERCE_URL = "/shop"
    SHOPYO_ECOMMERCE_CURRENCY = "MUR"
    SHOPYO_ECOMMERCE_ITEMS_PER_PAGE = 24
    SHOPYO_ECOMMERCE_ENABLE_WISHLIST = False
    SHOPYO_ECOMMERCE_UPLOADED_PRODUCTPHOTOS_DEST = "/data/uploads/products"

Currency symbols are resolved from the ISO 4217 code via the iso4217parse package (e.g. MUR -> โ‚จ, EUR -> โ‚ฌ).

๊ด€๋ จ ํ”„๋กœ์ ํŠธ ์‚ดํŽด๋ณด๊ธฐ

๋ถˆ๋Ÿฌ์˜ค๋Š” ์ค‘โ€ฆ