generated from westfarn/web_django_template
Add customer accounts, shipment tracking, and purchase reviews.
CI / test (pull_request) Successful in 35s
CI / test (pull_request) Successful in 35s
Shoppers can register, save shipping details, and view order history while cards stay on Stripe. EasyPost tracker updates (including numbers from Pirate Ship) and 1–5 star reviews are limited to buyers. The contact form now only asks for email and a message.
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
from core.registry import (
|
||||
register_dashboard_collector,
|
||||
register_dispatcher,
|
||||
register_feature,
|
||||
register_portal_nav,
|
||||
)
|
||||
@@ -15,6 +16,7 @@ def register() -> None:
|
||||
order=50,
|
||||
)
|
||||
register_dashboard_collector(_dashboard)
|
||||
register_dispatcher(_sync_tracking)
|
||||
|
||||
|
||||
def _dashboard(request) -> dict:
|
||||
@@ -29,3 +31,10 @@ def _dashboard(request) -> dict:
|
||||
.exclude(pk__in=labeled)
|
||||
.count()
|
||||
}
|
||||
|
||||
|
||||
def _sync_tracking() -> int:
|
||||
from shipping.services import sync_open_tracking
|
||||
|
||||
return sync_open_tracking()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user