From b15fdf1d6abf472e17145099c23fd3db6dc0299e Mon Sep 17 00:00:00 2001 From: iBNu Maksum Date: Thu, 17 Oct 2024 09:35:26 +0700 Subject: [PATCH] Setting sAllow Registration = Yes/Voucher/No Registration --- system/autoload/Admin.php | 2 +- system/lan/english.json | 5 ++++- ui/ui/app-settings.tpl | 40 +++++++++++++++++++++------------------ ui/ui/customer/login.tpl | 8 +++++--- 4 files changed, 32 insertions(+), 23 deletions(-) diff --git a/system/autoload/Admin.php b/system/autoload/Admin.php index 2b31f337..eda42cde 100644 --- a/system/autoload/Admin.php +++ b/system/autoload/Admin.php @@ -73,7 +73,7 @@ class Admin return 0; } - + public static function setCookie($aid) { global $db_pass, $config; diff --git a/system/lan/english.json b/system/lan/english.json index 2b15d89e..f991688d 100644 --- a/system/lan/english.json +++ b/system/lan/english.json @@ -802,5 +802,8 @@ "Customer_Registration_need_to_validate_using_OTP": "Customer Registration need to validate using OTP", "Registration_Username": "Registration Username", "Registration": "Registration", - "For_Registration_and_Update_Phone_Number": "For Registration and Update Phone Number" + "For_Registration_and_Update_Phone_Number": "For Registration and Update Phone Number", + "Voucher_Only": "Voucher Only", + "No_Registration": "No Registration", + "Allow_Registration": "Allow Registration" } \ No newline at end of file diff --git a/ui/ui/app-settings.tpl b/ui/ui/app-settings.tpl index 58bf07fd..b578ec9f 100644 --- a/ui/ui/app-settings.tpl +++ b/ui/ui/app-settings.tpl @@ -172,6 +172,27 @@
+
+ +
+ +
+

+ {Lang::T('Customer just Login with Phone number and Voucher Code, Voucher will be password')} +

+
@@ -218,7 +239,7 @@

{Lang::T('The method which OTP will be sent to user')}
- {Lang::T('For Registration and Update Phone Number')}

+ {Lang::T('For Registration and Update Phone Number')}

{if $_c['disable_voucher'] != 'yes'} -
- -
- -
-

- {Lang::T('Customer just Login with Phone number and Voucher Code, Voucher will be - password')} -

-
diff --git a/ui/ui/customer/login.tpl b/ui/ui/customer/login.tpl index acfe2d41..9dae48a7 100644 --- a/ui/ui/customer/login.tpl +++ b/ui/ui/customer/login.tpl @@ -63,9 +63,11 @@
- + {if $_c['disable_registration'] != 'noreg'} + + {/if}