@@ -94,7 +119,7 @@ const handleSubmitDiscountCode = () => {
تخفیف:
@@ -119,19 +144,33 @@ const handleSubmitDiscountCode = () => {
v-model="discountCode"
placeholder="کد تخفیف"
class="!py-3 !pe-2 ps-2.5 w-full !rounded-none !border-e-[0px] !rounded-s-100"
+ :disabled="hasSubmittedDiscountCode"
/>
diff --git a/frontend/components/cart/index/CartItem.vue b/frontend/components/cart/index/CartItem.vue
index aa62337..4c84b9f 100644
--- a/frontend/components/cart/index/CartItem.vue
+++ b/frontend/components/cart/index/CartItem.vue
@@ -140,11 +140,11 @@ watch(
{{ data.product.category }}
- {{ data.product.discount }}
+ {{ data.discount }}
تخفیف
@@ -227,15 +227,15 @@ watch(
- {{ data.product.price }}
+ {{ data.price }}
- {{ data.product.final_price }}
+ {{ data.final_price }}
@@ -279,11 +279,17 @@ watch(
-
- {{ data.product.price }}
-
+
+
+ {{ data.price }}
+
+
+ {{ data.final_price }}
+
+
diff --git a/frontend/components/global/Input.vue b/frontend/components/global/Input.vue
index ebee80b..c766fc7 100644
--- a/frontend/components/global/Input.vue
+++ b/frontend/components/global/Input.vue
@@ -15,7 +15,7 @@ const props = withDefaults(defineProps