This commit is contained in:
Diatrex 2021-05-03 10:44:17 +03:00
commit eca266248f
3 changed files with 11 additions and 3 deletions

View File

@ -4,6 +4,13 @@ use Anomaly\Streams\Platform\Database\Migration\Migration;
class VisiosoftModuleAdvsChangeProductOptionsValue extends Migration
{
public function __construct()
{
//Maria DB will be removed when the version is updated.
\Illuminate\Support\Facades\DB::getDoctrineSchemaManager()
->getDatabasePlatform()->registerDoctrineTypeMapping('point', 'string');
}
public function up()
{
if (!$field = $this->fields()->findBySlugAndNamespace('product_options_value', 'advs')) {

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;
}