#2647 emlak24 yapılacaklar

This commit is contained in:
Diatrex 2020-11-12 17:19:10 +03:00
parent e360e2f101
commit 2006da4a96
4 changed files with 18 additions and 5 deletions

View File

@ -23,6 +23,7 @@ return [
'latest-limit', 'latest-limit',
'popular_ads_limit', 'popular_ads_limit',
'default_view_type', 'default_view_type',
'hide_listing_standard_price',
'hide_zero_price', 'hide_zero_price',
'auto_approve', 'auto_approve',
'estimated_pending_time', 'estimated_pending_time',

View File

@ -146,6 +146,13 @@ return [
'mode' => 'checkbox' 'mode' => 'checkbox'
] ]
], ],
'hide_listing_standard_price' => [
'type' => 'anomaly.field_type.boolean',
'config' => [
'default_value' => false,
'mode' => 'checkbox'
]
],
'enabled_currencies' => [ 'enabled_currencies' => [
'bind' => 'streams::currencies.enabled', 'bind' => 'streams::currencies.enabled',
'env' => 'ADV_ENABLED_CURRENCIES', 'env' => 'ADV_ENABLED_CURRENCIES',

View File

@ -111,6 +111,9 @@ return [
'name' => 'Make Map Required', 'name' => 'Make Map Required',
'instructions' => 'Require the user to place a pin on the map when creating an ad', 'instructions' => 'Require the user to place a pin on the map when creating an ad',
], ],
'hide_listing_standard_price' => [
'name' => 'Hide Listing Standard Price',
],
'enabled_currencies' => [ 'enabled_currencies' => [
'name' => 'Enabled Currencies', 'name' => 'Enabled Currencies',
], ],

View File

@ -21,11 +21,13 @@
<div class="col-md-3 text-left justify-content-center align-self-center"> <div class="col-md-3 text-left justify-content-center align-self-center">
<div class="row"> <div class="row">
<div class="col-md-12"> <div class="col-md-12">
<p class="theme-price-old small mb-0"><del> {% if not setting_value('visiosoft.module.advs::hide_listing_standard_price') %}
{{ adv.standard_price != adv.price and adv.standard_price != '0' <p class="theme-price-old small mb-0"><del>
? adv.standard_price.currency() {{ adv.standard_price != adv.price and adv.standard_price != '0'
: '' }} ? adv.standard_price.currency()
</del></p> : '' }}
</del></p>
{% endif %}
<b>{{ adv.price != '0' <b>{{ adv.price != '0'
? adv.price.currency() ? adv.price.currency()
: trans('visiosoft.module.advs::field.free') }}</b> : trans('visiosoft.module.advs::field.free') }}</b>