import logging # Configure logging logging.basicConfig(level=logging.INFO) logger = logging.getLogger("notifications") def notify_status_change(email: str, order_id: int, new_status: str, first_name: str): """ Hook to send notification when order status changes. The USER will configure SMTP here later. """ logger.info(f"NOTIFICATION HOOK: Sending status update to {email} for Order #{order_id}. New Status: {new_status}") # Template for future SMTP integration: # subject = f"Radionica3D: Update on your Order #{order_id}" # body = f"Hello {first_name},\n\nYour order status has been updated to: {new_status}.\n\nCheck details here: http://localhost:5173/orders" # send_email(email, subject, body) return True