summaryrefslogtreecommitdiff
path: root/indoteknik_api
diff options
context:
space:
mode:
authorAzka Nathan <darizkyfaz@gmail.com>2023-09-22 16:42:49 +0700
committerAzka Nathan <darizkyfaz@gmail.com>2023-09-22 16:42:49 +0700
commite5f37e075273f6c463e70eb0d3743b95e05096cc (patch)
tree2a0f13f82fb0333530e2094cc6b95dad4be0f825 /indoteknik_api
parent379ceac5814a8005e8c4cde76494c640ddcbf3bb (diff)
fix error product product
Diffstat (limited to 'indoteknik_api')
-rw-r--r--indoteknik_api/models/product_product.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/indoteknik_api/models/product_product.py b/indoteknik_api/models/product_product.py
index 8517e28a..71022af5 100644
--- a/indoteknik_api/models/product_product.py
+++ b/indoteknik_api/models/product_product.py
@@ -235,6 +235,15 @@ class ProductProduct(models.Model):
f'price_tier{tier_number}': price or 0
}
return data
+
+ def _get_pricelist_tier1(self):
+ return self._get_pricelist_tier(1)
+
+ def _get_pricelist_tier2(self):
+ return self._get_pricelist_tier(2)
+
+ def _get_pricelist_tier3(self):
+ return self._get_pricelist_tier(3)
def _get_flashsale_price(self):
result = {}