Merge pull request #1065 from openclassify/muammertop

hide price for unauthorized users
This commit is contained in:
Ozcan Durak 2021-04-30 17:48:54 +03:00 committed by GitHub
commit 49ef627d6a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 3 deletions

View File

@ -1,6 +1,5 @@
<div class="slider-text">
<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') ? (not auth_check() ? 'd-none') }}">
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12 offered-field offered-row">
{% set standardPrice = adv.standard_price.value %}
{% if standardPrice and standardPrice > 0 %}
<div class="d-flex flex-wrap align-items-center">

View File

@ -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('&#160;', ' ', $separator)) . $suffix;
}