From 91e024ffc5c2dc083d01e0de1a5a4554b44efae3 Mon Sep 17 00:00:00 2001 From: ravibharathi656 Date: Mon, 18 May 2026 13:45:15 +0530 Subject: [PATCH] fix: use shopify customer id as fallback --- ecommerce_integrations/shopify/customer.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ecommerce_integrations/shopify/customer.py b/ecommerce_integrations/shopify/customer.py index 3a0ee952f..91f6bc223 100644 --- a/ecommerce_integrations/shopify/customer.py +++ b/ecommerce_integrations/shopify/customer.py @@ -25,6 +25,9 @@ def sync_customer(self, customer: dict[str, Any]) -> None: if len(customer_name.strip()) == 0: customer_name = customer.get("email") + if not customer_name: + customer_name = cstr(customer.get("id")) + customer_group = self.setting.customer_group super().sync_customer(customer_name, customer_group)