diff --git a/app/routes/platform_pages.py b/app/routes/platform_pages.py
index 1fc045f8..540b03b0 100644
--- a/app/routes/platform_pages.py
+++ b/app/routes/platform_pages.py
@@ -11,7 +11,7 @@ from pathlib import Path
from fastapi import APIRouter, Depends, HTTPException, Request
from fastapi.responses import HTMLResponse
-from fastapi.templating import Jinja2Templates
+from app.templates_config import templates
from sqlalchemy.orm import Session
from app.core.config import settings
@@ -24,8 +24,8 @@ logger = logging.getLogger(__name__)
# Get the templates directory
BASE_DIR = Path(__file__).resolve().parent.parent.parent
-TEMPLATES_DIR = BASE_DIR / "app" / "templates"
-templates = Jinja2Templates(directory=str(TEMPLATES_DIR))
+# TEMPLATES_DIR moved to app.templates_config
+# templates imported from app.templates_config
def get_platform_context(request: Request, db: Session) -> dict:
@@ -171,6 +171,25 @@ async def homepage(
context["page"] = cms_homepage
context["platform"] = platform
+ # Include subscription tiers for pricing section
+ from models.database.subscription import TIER_LIMITS, TierCode
+
+ tiers = []
+ for tier_code, limits in TIER_LIMITS.items():
+ tiers.append({
+ "code": tier_code.value,
+ "name": limits["name"],
+ "price_monthly": limits["price_monthly_cents"] / 100,
+ "price_annual": (limits["price_annual_cents"] / 100) if limits.get("price_annual_cents") else None,
+ "orders_per_month": limits.get("orders_per_month"),
+ "products_limit": limits.get("products_limit"),
+ "team_members": limits.get("team_members"),
+ "features": limits.get("features", []),
+ "is_popular": tier_code == TierCode.PROFESSIONAL,
+ "is_enterprise": tier_code == TierCode.ENTERPRISE,
+ })
+ context["tiers"] = tiers
+
template_name = cms_homepage.template or "default"
template_path = f"platform/homepage-{template_name}.html"
diff --git a/app/templates/admin/base.html b/app/templates/admin/base.html
index 02e1374f..d7e4bba8 100644
--- a/app/templates/admin/base.html
+++ b/app/templates/admin/base.html
@@ -130,7 +130,10 @@
-
+
+
+
+