#1880 [advs-module] Add a setting to hide the standard price

This commit is contained in:
Diatrex 2020-07-29 12:34:51 +03:00
parent a4d17fa9c6
commit 62ce99fa98
4 changed files with 11 additions and 1 deletions

View File

@ -34,6 +34,7 @@ return [
'watermark_image', 'watermark_image',
'watermark_position', 'watermark_position',
'listing_page_image', 'listing_page_image',
'hide_standard_price_field',
], ],
], ],
'user' => [ 'user' => [

View File

@ -170,6 +170,12 @@ return [
'mode' => 'upload', 'mode' => 'upload',
] ]
], ],
'hide_standard_price_field' => [
'type' => 'anomaly.field_type.boolean',
'config' => [
'default_value' => false,
]
],
'enabled_currencies' => [ 'enabled_currencies' => [
'bind' => 'streams::currencies.enabled', 'bind' => 'streams::currencies.enabled',
'env' => 'ADV_ENABLED_CURRENCIES', 'env' => 'ADV_ENABLED_CURRENCIES',

View File

@ -118,6 +118,9 @@ return [
'listing_page_image' => [ 'listing_page_image' => [
'name' => 'Listing Page Image', 'name' => 'Listing Page Image',
], ],
'hide_standard_price_field' => [
'name' => 'Hide Standard Price Field',
],
'enabled_currencies' => [ 'enabled_currencies' => [
'name' => 'Enabled Currencies', 'name' => 'Enabled Currencies',
], ],

View File

@ -60,7 +60,7 @@
</div> </div>
{{ addBlock('new-ad/fields',{'adv':adv})|raw }} {{ addBlock('new-ad/fields',{'adv':adv})|raw }}
<div class="row form-group select-price"> <div class="row form-group select-price{{ setting_value('visiosoft.module.advs::hide_standard_price_field') ? ' d-none' }}">
<label class="col-sm-2 col-xs-12"> <label class="col-sm-2 col-xs-12">
{{ form.fields.standard_price.label|raw }} {{ form.fields.standard_price.label|raw }}
<span class="required">*</span> <span class="required">*</span>