#4865 optional seller information setting

This commit is contained in:
Muammer Top 2021-12-07 11:32:55 +03:00
parent 4e8199bdd2
commit 4f7adccede
3 changed files with 15 additions and 0 deletions

View File

@ -49,6 +49,7 @@ return [
'fields' => [
'ads_date_hidden',
'hide_seller_info',
'hide_seller_info_by_category',
]
],
'create_ad' => [

View File

@ -437,6 +437,16 @@ return [
'default_value' => false,
]
],
'hide_seller_info_by_category' => [
'type' => 'anomaly.field_type.checkboxes',
'required' => true,
'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' => [

View File

@ -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',