Revert "Features: 1) Update category root logic to retrieve the first family member instead of the root node;"

This reverts commit 82f59307bf.
This commit is contained in:
Egor Pavlovich Gorbunov 2025-06-20 03:27:53 +03:00
parent c0a753fa15
commit e68bd73a6a

View file

@ -63,7 +63,7 @@ class ProductDocument(_BaseDoc):
return float(obj.price) if obj.price else 0.0
def prepare_top_level(self, obj):
root = obj.category.get_family().first() if obj.category else None
root = obj.category.get_root() if obj.category else None
return root.slug if root else "other"
def prepare_product_type(self, obj):