diff --git a/index.php b/index.php
index 5dbd70a..630814a 100644
--- a/index.php
+++ b/index.php
@@ -8049,23 +8049,6 @@ runtime_debug_mark('page:rendering', ['page' => (string)$page]);
= $lang === 'ar' ? 'أنفق المزيد للوصول إلى الفضي' : 'Spend more to unlock Silver' ?>
-
-
-
-
- = __('currency') ?>
-
-
-
-
-
-
-
-
-
-
-
-
@@ -8077,6 +8060,16 @@ runtime_debug_mark('page:rendering', ['page' => (string)$page]);
+
+
+
+
+ = __('currency') ?>
+
+
+
+
+
= $lang === 'ar' ? 'المجموع (بدون الضريبة)' : 'Subtotal (Excl. VAT)' ?>
= __('currency') ?> 0.000
@@ -8489,7 +8482,9 @@ runtime_debug_mark('page:rendering', ['page' => (string)$page]);
this.render();
},
async applyDiscount() {
- const code = document.getElementById('discountCode').value.trim();
+ const discountInput = document.getElementById('discountCode');
+ if (!discountInput) return;
+ const code = discountInput.value.trim();
if (!code) return;
try {
const resp = await fetch(`index.php?action=validate_discount&code=${code}`);
@@ -8499,8 +8494,10 @@ runtime_debug_mark('page:rendering', ['page' => (string)$page]);
const manualDiscountInput = document.getElementById('manualDiscountAmount');
if (manualDiscountInput) manualDiscountInput.value = '0.000';
const info = document.getElementById('appliedDiscountInfo');
- info.innerText = `${posT('Applied', 'تم تطبيق')}: ${this.discount.code} (${this.discount.type === 'percentage' ? this.discount.value + '%' : '= __('currency') ?> ' + parseFloat(this.discount.value).toFixed(3)})`;
- info.style.display = 'block';
+ if (info) {
+ info.innerText = `${posT('Applied', 'تم تطبيق')}: ${this.discount.code} (${this.discount.type === 'percentage' ? this.discount.value + '%' : '= __('currency') ?> ' + parseFloat(this.discount.value).toFixed(3)})`;
+ info.style.display = 'block';
+ }
this.render();
} else {
Swal.fire(posT('Error', 'خطأ'), res.error, 'error');