From 62ce99fa985c6185876ae979e63f44a7c2aed508 Mon Sep 17 00:00:00 2001 From: Diatrex Date: Wed, 29 Jul 2020 12:34:51 +0300 Subject: [PATCH 1/2] #1880 [advs-module] Add a setting to hide the standard price --- .../advs-module/resources/config/settings/sections.php | 1 + .../advs-module/resources/config/settings/settings.php | 6 ++++++ .../visiosoft/advs-module/resources/lang/en/setting.php | 3 +++ .../advs-module/resources/views/new-ad/new-create.twig | 2 +- 4 files changed, 11 insertions(+), 1 deletion(-) 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 968cd4226..0ccb51009 100644 --- a/addons/default/visiosoft/advs-module/resources/config/settings/sections.php +++ b/addons/default/visiosoft/advs-module/resources/config/settings/sections.php @@ -34,6 +34,7 @@ return [ 'watermark_image', 'watermark_position', 'listing_page_image', + 'hide_standard_price_field', ], ], 'user' => [ 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 6316df519..6bc7c9c99 100644 --- a/addons/default/visiosoft/advs-module/resources/config/settings/settings.php +++ b/addons/default/visiosoft/advs-module/resources/config/settings/settings.php @@ -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', 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 36b2f95b7..b1aaeb21a 100644 --- a/addons/default/visiosoft/advs-module/resources/lang/en/setting.php +++ b/addons/default/visiosoft/advs-module/resources/lang/en/setting.php @@ -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', ], diff --git a/addons/default/visiosoft/advs-module/resources/views/new-ad/new-create.twig b/addons/default/visiosoft/advs-module/resources/views/new-ad/new-create.twig index e5ee80ee4..07407b4e1 100644 --- a/addons/default/visiosoft/advs-module/resources/views/new-ad/new-create.twig +++ b/addons/default/visiosoft/advs-module/resources/views/new-ad/new-create.twig @@ -60,7 +60,7 @@ {{ addBlock('new-ad/fields',{'adv':adv})|raw }} -
+
- {{ addBlock('new-ad/fields',{'adv':adv})|raw }} + + {{ addBlock('new-ad/fields', {'adv': adv})|raw }}