mirror of
https://github.com/openclassify/openclassify.git
synced 2026-01-11 18:01:10 -06:00
#1880 [advs-module] Add a setting to hide the standard price
This commit is contained in:
parent
a4d17fa9c6
commit
62ce99fa98
@ -34,6 +34,7 @@ return [
|
||||
'watermark_image',
|
||||
'watermark_position',
|
||||
'listing_page_image',
|
||||
'hide_standard_price_field',
|
||||
],
|
||||
],
|
||||
'user' => [
|
||||
|
||||
@ -170,6 +170,12 @@ return [
|
||||
'mode' => 'upload',
|
||||
]
|
||||
],
|
||||
'hide_standard_price_field' => [
|
||||
'type' => 'anomaly.field_type.boolean',
|
||||
'config' => [
|
||||
'default_value' => false,
|
||||
]
|
||||
],
|
||||
'enabled_currencies' => [
|
||||
'bind' => 'streams::currencies.enabled',
|
||||
'env' => 'ADV_ENABLED_CURRENCIES',
|
||||
|
||||
@ -118,6 +118,9 @@ return [
|
||||
'listing_page_image' => [
|
||||
'name' => 'Listing Page Image',
|
||||
],
|
||||
'hide_standard_price_field' => [
|
||||
'name' => 'Hide Standard Price Field',
|
||||
],
|
||||
'enabled_currencies' => [
|
||||
'name' => 'Enabled Currencies',
|
||||
],
|
||||
|
||||
@ -60,7 +60,7 @@
|
||||
</div>
|
||||
{{ 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">
|
||||
{{ form.fields.standard_price.label|raw }}
|
||||
<span class="required">*</span>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user