From b9e987570cb12452c5a4d67824089b80aa597f88 Mon Sep 17 00:00:00 2001 From: Ibnu Maksum Date: Tue, 12 Mar 2024 11:54:20 +0700 Subject: [PATCH] Show From Customer --- system/controllers/order.php | 8 +-- system/lan/english.json | 4 +- ui/ui/balance-add.tpl | 109 ++++++++++++++++++----------------- ui/ui/balance-edit.tpl | 2 +- ui/ui/hotspot-add.tpl | 2 +- ui/ui/hotspot-edit.tpl | 2 +- ui/ui/pppoe-add.tpl | 2 +- ui/ui/pppoe-edit.tpl | 2 +- 8 files changed, 63 insertions(+), 68 deletions(-) diff --git a/system/controllers/order.php b/system/controllers/order.php index b45aa8c6..03bdfd97 100644 --- a/system/controllers/order.php +++ b/system/controllers/order.php @@ -152,9 +152,6 @@ switch ($action) { if (!$plan['enabled']) { r2(U . "home", 'e', 'Plan is not exists'); } - if ($plan['allow_purchase'] != 'yes') { - r2(U . "home", 'e', 'Cannot recharge this plan'); - } if ($routes['2'] == 'radius') { $router_name = 'radius'; } else { @@ -188,9 +185,6 @@ switch ($action) { if (!$plan['enabled']) { r2(U . "home", 'e', 'Plan is not exists'); } - if ($plan['allow_purchase'] != 'yes') { - r2(U . "home", 'e', 'Cannot recharge this plan'); - } if ($routes['2'] == 'radius') { $router_name = 'radius'; } else { @@ -319,7 +313,7 @@ switch ($action) { $router['id'] = 0; $router['name'] = 'balance'; } - $plan = ORM::for_table('tbl_plans')->where('enabled', '1')->where('allow_purchase', 'yes')->find_one($routes['3']); + $plan = ORM::for_table('tbl_plans')->where('enabled', '1')->find_one($routes['3']); if (empty($router) || empty($plan)) { r2(U . "order/package", 'e', Lang::T("Plan Not found")); } diff --git a/system/lan/english.json b/system/lan/english.json index 071f1b71..7cf1720b 100644 --- a/system/lan/english.json +++ b/system/lan/english.json @@ -384,7 +384,6 @@ "After_Customer_activate_voucher_or_login__customer_will_be_redirected_to_this_url": "After Customer activate voucher or login, customer will be redirected to this url", "Voucher_Prefix": "Voucher Prefix", "Voucher_activation_success__now_you_can_login": "Voucher activation success, now you can login", - "Client_Can_Purchase": "Client Can Purchase", "Buy_this__your_active_package_will_be_overwritten": "Buy this? your active package will be overwritten", "Pay_this_with_Balance__your_active_package_will_be_overwritten": "Pay this with Balance? your active package will be overwritten", "Buy_this__your_active_package_will_be_overwrite": "Buy this? your active package will be overwrite", @@ -468,5 +467,6 @@ "Please_select_Payment_Gateway": "Please select Payment Gateway", "Payment_Gateway_Deleted": "Payment Gateway Deleted", "Payment_Gateway_not_set__please_set_it_in_Settings": "Payment Gateway not set, please set it in Settings", - "Failed_to_create_Transaction__": "Failed to create Transaction.." + "Failed_to_create_Transaction__": "Failed to create Transaction..", + "Show_To_Customer": "Show To Customer" } \ No newline at end of file diff --git a/ui/ui/balance-add.tpl b/ui/ui/balance-add.tpl index 79a796aa..748ffcba 100644 --- a/ui/ui/balance-add.tpl +++ b/ui/ui/balance-add.tpl @@ -1,59 +1,60 @@ {include file="sections/header.tpl"} -
-
-
-
{Lang::T('Add Service Plan')}
-
-
-
- -
- - -
-
-
- -
- - -
-
-
- -
- -
-
-
- -
-
- {$_c['currency_code']} - -
-
+
+
+
+
{Lang::T('Add Service Plan')}
+
+ +
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ +
+
+
+ +
+
+ {$_c['currency_code']} +
+
+
-
-
- - Or {Lang::T('Cancel')} -
-
- -
-
-
-
+
+
+ + Or {Lang::T('Cancel')} +
+
+ +
+
+
+
-{include file="sections/footer.tpl"} +{include file="sections/footer.tpl"} \ No newline at end of file diff --git a/ui/ui/balance-edit.tpl b/ui/ui/balance-edit.tpl index 8d735cd7..e188f0ec 100644 --- a/ui/ui/balance-edit.tpl +++ b/ui/ui/balance-edit.tpl @@ -19,7 +19,7 @@
- +
- +
Yes No diff --git a/ui/ui/hotspot-edit.tpl b/ui/ui/hotspot-edit.tpl index 97948afd..30da3b3c 100644 --- a/ui/ui/hotspot-edit.tpl +++ b/ui/ui/hotspot-edit.tpl @@ -15,7 +15,7 @@
- +
Yes No diff --git a/ui/ui/pppoe-add.tpl b/ui/ui/pppoe-add.tpl index 98b308dc..1ef2d80f 100644 --- a/ui/ui/pppoe-add.tpl +++ b/ui/ui/pppoe-add.tpl @@ -14,7 +14,7 @@
- +
Yes No diff --git a/ui/ui/pppoe-edit.tpl b/ui/ui/pppoe-edit.tpl index d866c724..5d9d0449 100644 --- a/ui/ui/pppoe-edit.tpl +++ b/ui/ui/pppoe-edit.tpl @@ -15,7 +15,7 @@
- +
Yes No