diff --git a/addons/default/visiosoft/advs-module/resources/views/ad-detail/partials/detail.twig b/addons/default/visiosoft/advs-module/resources/views/ad-detail/partials/detail.twig index fd4d80c35..ab26ee08f 100644 --- a/addons/default/visiosoft/advs-module/resources/views/ad-detail/partials/detail.twig +++ b/addons/default/visiosoft/advs-module/resources/views/ad-detail/partials/detail.twig @@ -1,6 +1,5 @@
-
+
{% set standardPrice = adv.standard_price.value %} {% if standardPrice and standardPrice > 0 %}
diff --git a/addons/default/visiosoft/advs-module/src/Support/Command/Currency.php b/addons/default/visiosoft/advs-module/src/Support/Command/Currency.php index d7c2ac70f..f0d86c33c 100644 --- a/addons/default/visiosoft/advs-module/src/Support/Command/Currency.php +++ b/addons/default/visiosoft/advs-module/src/Support/Command/Currency.php @@ -48,7 +48,9 @@ class Currency $decimals = 0; } } - + if (setting_value('visiosoft.module.advs::show_price_to_members_only') && !auth()->check()){ + return null; + } return $prefix . number_format($number, $decimals, $point, str_replace(' ', ' ', $separator)) . $suffix; }