Show Price To Members Only

This commit is contained in:
Muammer Top 2021-04-26 11:29:51 +03:00
parent 971119fdd0
commit 33a49e8ba0
4 changed files with 13 additions and 2 deletions

View File

@ -28,6 +28,7 @@ return [
'popular_ads_limit',
'ads_image_limit',
'default_view_type',
'show_price_to_members_only',
'price_area_hidden',
'hide_listing_standard_price',
'hide_zero_price',

View File

@ -443,4 +443,10 @@ return [
'default_value' => false,
]
],
'show_price_to_members_only' => [
'type' => 'anomaly.field_type.boolean',
'config' => [
'default_value' => false,
]
],
];

View File

@ -264,5 +264,8 @@ return [
],
'show_subcats_mobile' => [
'name' => 'Show subcategories on mobile view',
]
],
'show_price_to_members_only' => [
'name' => 'Show Price To Members Only',
],
];

View File

@ -1,5 +1,6 @@
<div class="slider-text">
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12 offered-field offered-row">
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12 offered-field offered-row
{{ setting_value('visiosoft.module.advs::show_price_to_members_only') ? (auth_check() ? false : 'd-none') : false }}">
{% set standardPrice = adv.standard_price.value %}
{% if standardPrice and standardPrice > 0 %}
<div class="d-flex flex-wrap align-items-center">