add tawk to and example walled garden

This commit is contained in:
Ibnu Maksum
2022-09-07 15:07:40 +07:00
parent b7394762b3
commit 40d77bba7b
10 changed files with 97 additions and 7 deletions

View File

@ -205,6 +205,7 @@ switch ($action) {
$sms_url = _post('sms_url');
$wa_url = _post('wa_url');
$address = _post('address');
$tawkto = _post('tawkto');
$payment_gateway = _post('payment_gateway');
if ($company == '') {
r2(U . 'settings/app', 'e', $_L['All_field_is_required']);
@ -277,6 +278,17 @@ switch ($action) {
$d->save();
}
$d = ORM::for_table('tbl_appconfig')->where('setting', 'tawkto')->find_one();
if($d){
$d->value = $tawkto;
$d->save();
}else{
$d = ORM::for_table('tbl_appconfig')->create();
$d->setting = 'tawkto';
$d->value = $tawkto;
$d->save();
}
$note = _post('note');
$d = ORM::for_table('tbl_appconfig')->where('setting', 'note')->find_one();
$d->value = $note;