diff options
| author | Azka Nathan <darizkyfaz@gmail.com> | 2024-09-02 09:30:18 +0700 |
|---|---|---|
| committer | Azka Nathan <darizkyfaz@gmail.com> | 2024-09-02 09:30:18 +0700 |
| commit | 1e44c76fa1b4f9aa63599a4efb0adb84b3adba75 (patch) | |
| tree | afcb54c6f7f62548b7f7dcfa90ae7b42d34f5576 | |
| parent | deb05e3688af17d8bda9a53296e34b3cd8a0e963 (diff) | |
cr api get cart
| -rw-r--r-- | indoteknik_custom/models/website_user_cart.py | 1 |
1 files changed, 1 insertions, 0 deletions
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) |
