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:
parent
c0a753fa15
commit
e68bd73a6a
1 changed files with 1 additions and 1 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Reference in a new issue