diff --git a/addons/default/visiosoft/advs-module/resources/css/edit_category.css b/addons/default/visiosoft/advs-module/resources/css/edit_category.css
new file mode 100644
index 000000000..2186c271b
--- /dev/null
+++ b/addons/default/visiosoft/advs-module/resources/css/edit_category.css
@@ -0,0 +1,34 @@
+.cat-select {
+ width: 100%;
+ border: none;
+ overflow-y: auto
+}
+
+.cat-select option {
+ border-top: 1px solid #f2f2f2;
+ padding: 15px 0 20px;
+ position: relative;
+ padding-left: 10px;
+ font-size: 16px;
+ color: #505050;
+}
+
+.cat-item-2 {
+ display: none;
+}
+
+.cat-item-3 {
+ display: none;
+}
+
+.cat-item-3 .section {
+ min-height: 320px;
+}
+
+.btn-1 {
+ background-color: #00a651;
+ padding: 5px 50px 7px;
+ color: #fff;
+ border: 1px solid #dadada;
+ margin-right: 5px;
+}
\ No newline at end of file
diff --git a/addons/default/visiosoft/advs-module/resources/js/edit_cats.js b/addons/default/visiosoft/advs-module/resources/js/edit_cats.js
new file mode 100644
index 000000000..f93b3f139
--- /dev/null
+++ b/addons/default/visiosoft/advs-module/resources/js/edit_cats.js
@@ -0,0 +1,52 @@
+$(document).ready(function () {
+ $('select[name="cat1"], select[name="cat2"], select[name="cat3"], ' +
+ 'select[name="cat4"], select[name="cat5"], select[name="cat6"], select[name="cat7"]').on('change', function () {
+ var all = $(this).val();
+ $(this).val(all[all.length-1])
+ })
+
+ const filter = {};
+ filter.getCats = (catId, divId) => {
+ $.ajax({
+ type: 'get',
+ url: '/ajax/getcats/'+ divId,
+ success: function (response) {
+ if(response.length <= 0){
+ $('.cat-item-3').show();
+ stop();
+ }
+ else {
+ response.forEach(function(options){
+ $(catId).append("").closest('.cat-item-2').show();
+ });
+ }
+ }
+ })
+ };
+
+ filter.hideCats = (num) => {
+ var startNo = num;
+ var endNo = 6;
+
+ while (startNo <= endNo) {
+ $('#cat'+ startNo).html("").closest('.cat-item-2').hide();
+ $('.cat-item-3').hide();
+ startNo++;
+ }
+ };
+
+ for (var i = 1; i <= 6; i++) {
+ (function(){
+ var ii = i;
+ $('#cat'+i).on('change', function (i,e) {
+ divId = $(this).find('option:selected').val();
+ if (divId == 0) {
+ filter.hideCats(ii+1);
+ }
+ filter.hideCats(ii+1);
+ filter.getCats("#cat"+(ii+1), divId);
+ });
+ })();
+ }
+
+});
\ No newline at end of file
diff --git a/addons/default/visiosoft/advs-module/resources/lang/en/button.php b/addons/default/visiosoft/advs-module/resources/lang/en/button.php
index 092684e6e..ddd3d433d 100644
--- a/addons/default/visiosoft/advs-module/resources/lang/en/button.php
+++ b/addons/default/visiosoft/advs-module/resources/lang/en/button.php
@@ -21,4 +21,7 @@ return [
'sub_neighborhoods' => 'Sub Neighborhoods',
'sub_village' => 'Sub Village',
'general_settings' => 'General Settings',
+ 'update_category' => [
+ 'name' => 'Update Category'
+ ],
];
diff --git a/addons/default/visiosoft/advs-module/resources/lang/en/field.php b/addons/default/visiosoft/advs-module/resources/lang/en/field.php
index 3e77fdbfb..af1425b79 100644
--- a/addons/default/visiosoft/advs-module/resources/lang/en/field.php
+++ b/addons/default/visiosoft/advs-module/resources/lang/en/field.php
@@ -140,7 +140,7 @@ return [
'share' => 'Share this ad',
'report' => 'Report this ad',
'features' => 'Features',
- "streetview" =>"Street View",
+ "streetview" => "Street View",
'recommended_ads' => 'Recommended Ads for You',
'new' => 'New',
'short_info' => 'Short Info',
@@ -216,4 +216,5 @@ return [
'sold_out' => [
'name' => 'Sold out',
],
+ 'edit_category' => 'Edit Category',
];
diff --git a/addons/default/visiosoft/advs-module/resources/lang/en/message.php b/addons/default/visiosoft/advs-module/resources/lang/en/message.php
index 7f0da6967..656aa5f8e 100644
--- a/addons/default/visiosoft/advs-module/resources/lang/en/message.php
+++ b/addons/default/visiosoft/advs-module/resources/lang/en/message.php
@@ -5,6 +5,8 @@ return [
'please_buy_package' => 'Please buy package',
'please_payment' => 'Please Pay',
'bank_account_info' => 'Bank account information',
- 'agreement' =>'By clicking Post, you agree to our Terms of Use and Privacy Policy acknowledge that you are the rightful owner of this item.'
+ 'agreement' => 'By clicking Post, you agree to our Terms of Use and Privacy Policy acknowledge that you are the rightful owner of this item.',
+ 'update_category_msg' => 'The classified category will be updated.',
+ 'updated_category_msg' => 'Category successfully edited.',
];
diff --git a/addons/default/visiosoft/advs-module/resources/lang/tr/button.php b/addons/default/visiosoft/advs-module/resources/lang/tr/button.php
index b85cc6c21..d88628ac0 100644
--- a/addons/default/visiosoft/advs-module/resources/lang/tr/button.php
+++ b/addons/default/visiosoft/advs-module/resources/lang/tr/button.php
@@ -20,5 +20,8 @@ return[
"sub_districts" =>"Alt Bölgeler",
"sub_neighborhoods" =>"Alt Mahalleler",
"sub_village" =>"Alt Köy",
- "general_settings" =>"Genel Ayarlar"
+ "general_settings" =>"Genel Ayarlar",
+ 'update_category' => [
+ 'name' => 'Kategori Güncelle'
+ ],
];
\ No newline at end of file
diff --git a/addons/default/visiosoft/advs-module/resources/lang/tr/field.php b/addons/default/visiosoft/advs-module/resources/lang/tr/field.php
index dc45494c0..26d7da2ec 100644
--- a/addons/default/visiosoft/advs-module/resources/lang/tr/field.php
+++ b/addons/default/visiosoft/advs-module/resources/lang/tr/field.php
@@ -265,5 +265,6 @@ return [
'sold_out' => [
'name' => 'Tükendi',
],
+ 'edit_category' => 'Kategori Düzenle',
];
\ No newline at end of file
diff --git a/addons/default/visiosoft/advs-module/resources/lang/tr/message.php b/addons/default/visiosoft/advs-module/resources/lang/tr/message.php
index 77c022c02..50ac01074 100644
--- a/addons/default/visiosoft/advs-module/resources/lang/tr/message.php
+++ b/addons/default/visiosoft/advs-module/resources/lang/tr/message.php
@@ -5,6 +5,7 @@ return [
"please_buy_package" => "Lütfen paket satın al",
'please_payment' => 'Lütfen Ödeme Yapınız',
'bank_account_info' => 'Banka Hesap Bilgilerimiz',
- 'agreement' =>'Yayınla\'yı tıkladığınızda, Kullanım Koşulları ve Gizlilik Politikasını kabul etmiş olursunuz, bu öğenin hak sahibi olduğunuzu kabul edersiniz.'
-
+ 'agreement' => 'Yayınla\'yı tıkladığınızda, Kullanım Koşulları ve Gizlilik Politikasını kabul etmiş olursunuz, bu öğenin hak sahibi olduğunuzu kabul edersiniz.',
+ 'update_category_msg' => 'İlan kategorisi güncellenecektir.',
+ 'updated_category_msg' => 'Kategori başarıyla güncellendi.',
];
\ No newline at end of file
diff --git a/addons/default/visiosoft/advs-module/resources/views/advs/edit-cat.twig b/addons/default/visiosoft/advs-module/resources/views/advs/edit-cat.twig
new file mode 100644
index 000000000..43bf021eb
--- /dev/null
+++ b/addons/default/visiosoft/advs-module/resources/views/advs/edit-cat.twig
@@ -0,0 +1,113 @@
+{% extends "theme::layouts/default" %}
+{% block content %}
+