From 1e44c76fa1b4f9aa63599a4efb0adb84b3adba75 Mon Sep 17 00:00:00 2001 From: Azka Nathan Date: Mon, 2 Sep 2024 09:30:18 +0700 Subject: cr api get cart --- indoteknik_custom/models/website_user_cart.py | 1 + 1 file changed, 1 insertion(+) diff --git a/indoteknik_custom/models/website_user_cart.py b/indoteknik_custom/models/website_user_cart.py index 0af22d47..581ed4cd 100644 --- a/indoteknik_custom/models/website_user_cart.py +++ b/indoteknik_custom/models/website_user_cart.py @@ -32,6 +32,7 @@ class WebsiteUserCart(models.Model): if self.product_id: res['cart_type'] = 'product' + res['active'] = True if self.product_id.active else False product = self.product_id.v2_api_single_response(self.product_id) res.update(product) -- cgit v1.2.3