diff --git a/addons/default/visiosoft/advs-module/resources/config/settings/sections.php b/addons/default/visiosoft/advs-module/resources/config/settings/sections.php index e428376ba..2b7bdc0a8 100644 --- a/addons/default/visiosoft/advs-module/resources/config/settings/sections.php +++ b/addons/default/visiosoft/advs-module/resources/config/settings/sections.php @@ -49,6 +49,7 @@ return [ 'fields' => [ 'ads_date_hidden', 'hide_seller_info', + 'hide_seller_info_by_category', ] ], 'create_ad' => [ diff --git a/addons/default/visiosoft/advs-module/resources/config/settings/settings.php b/addons/default/visiosoft/advs-module/resources/config/settings/settings.php index 1a1c47b66..3020bb947 100644 --- a/addons/default/visiosoft/advs-module/resources/config/settings/settings.php +++ b/addons/default/visiosoft/advs-module/resources/config/settings/settings.php @@ -437,6 +437,15 @@ return [ 'default_value' => false, ] ], + 'hide_seller_info_by_category' => [ + 'type' => 'anomaly.field_type.checkboxes', + 'config' => [ + 'mode' => 'tags', + 'options' => function () { + return app(\Visiosoft\CatsModule\Category\Contract\CategoryRepositoryInterface::class)->getMainCategories()->pluck('name', 'id'); + }, + ], + ], 'detailed_product_options' => [ 'type' => 'anomaly.field_type.boolean', 'config' => [ diff --git a/addons/default/visiosoft/advs-module/resources/lang/en/setting.php b/addons/default/visiosoft/advs-module/resources/lang/en/setting.php index 413a09e46..4487eb7a5 100644 --- a/addons/default/visiosoft/advs-module/resources/lang/en/setting.php +++ b/addons/default/visiosoft/advs-module/resources/lang/en/setting.php @@ -233,6 +233,10 @@ return [ 'name' => 'Hide Seller Information', 'instructions' => 'Hiding to seller infos in ads detail page', ], + 'hide_seller_info_by_category' => [ + 'name' => 'Hide Seller Information By Category', + 'instructions' => 'Hiding to seller infos by selected main categories in ads detail page', + ], 'show_post_ad_agreement' => [ 'name' => 'Show Post Ad Agreement', 'instructions' => 'Turn this on if you want to display a privacy policy agreement on the ad creation page', diff --git a/addons/default/visiosoft/advs-module/resources/lang/tr/setting.php b/addons/default/visiosoft/advs-module/resources/lang/tr/setting.php index befc99ae1..aa4573dbc 100644 --- a/addons/default/visiosoft/advs-module/resources/lang/tr/setting.php +++ b/addons/default/visiosoft/advs-module/resources/lang/tr/setting.php @@ -230,6 +230,10 @@ return [ 'name' => 'Satıcı Bilgilerini Gizle', 'instructions' => 'İlan detay sayfasında satıcı bilgilerinin gizlenmesi', ], + 'hide_seller_info_by_category' => [ + 'name' => 'Satıcı Bilgilerini Kategori Bazlı Gizle', + 'instructions' => 'İlan detay sayfasında seçilen ana kategorilere göre satıcı bilgilerinin gizlenmesi', + ], 'show_post_ad_agreement' => [ 'name' => 'İlan Sonrası Sözleşmesini Göster', 'instructions' => 'Reklam oluşturma sayfasında bir gizlilik politikası sözleşmesi görüntülemek istiyorsanız bunu açın',