Template
Add a shop sales dashboard with 30-day charts.
Portal Retail gets a Sales page for paid/fulfilled volume, daily bars, and top products so FEATURE_SHOP sites can see store performance without a third-party analytics tool. Closes #7
This commit is contained in:
@@ -63,6 +63,15 @@ def tianji_tracking(request):
|
||||
nav_section = "social_accounts"
|
||||
elif namespace == "social":
|
||||
nav_section = "social"
|
||||
elif namespace == "shop_portal":
|
||||
if url_name.startswith("product"):
|
||||
nav_section = "shop_products"
|
||||
elif url_name.startswith("order"):
|
||||
nav_section = "shop_orders"
|
||||
elif url_name == "sales":
|
||||
nav_section = "shop_sales"
|
||||
elif namespace == "shop":
|
||||
nav_section = "shop"
|
||||
|
||||
return {
|
||||
"tianji_enabled": getattr(settings, "TIANJI_ENABLED", False)
|
||||
|
||||
Reference in New Issue
Block a user