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 d700caebb..3b2c68aad 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 @@ -4,7 +4,7 @@ {% if standardPrice and standardPrice > 0 %}

- {{ adv.standard_price.currency(null,'currency') }} + {{ adv.standard_price.currency() }}

%{{ (100 - ((100 * adv.price.value) / adv.standard_price.value))|round(0, 'common') }} @@ -12,7 +12,7 @@

{% endif %}

- {{ adv.price.currency(null,'currency') }} + {{ adv.price.currency() }} {{ addBlock('ad-detail/priceField',{'adv':adv})|raw }} diff --git a/addons/default/visiosoft/advs-module/resources/views/list/partials/ads.twig b/addons/default/visiosoft/advs-module/resources/views/list/partials/ads.twig index a62abf360..0025fb8f8 100644 --- a/addons/default/visiosoft/advs-module/resources/views/list/partials/ads.twig +++ b/addons/default/visiosoft/advs-module/resources/views/list/partials/ads.twig @@ -23,11 +23,11 @@

{{ adv.standard_price != adv.price and adv.standard_price != '0' - ? adv.standard_price.currency(null,"currency") + ? adv.standard_price.currency() : '' }}

{{ adv.price != '0' - ? adv.price.currency(null,"currency") + ? adv.price.currency() : trans('visiosoft.module.advs::field.free') }}
{% if setting_value('visiosoft.module.location::list_page_location') %} diff --git a/addons/default/visiosoft/advs-module/resources/views/list/table.twig b/addons/default/visiosoft/advs-module/resources/views/list/table.twig index 1fc4372a6..2bed1d953 100644 --- a/addons/default/visiosoft/advs-module/resources/views/list/table.twig +++ b/addons/default/visiosoft/advs-module/resources/views/list/table.twig @@ -36,7 +36,7 @@ - {{ adv.price.currency(null,'currency') }} + {{ adv.price.currency() }} {{ adv.created_at|date("d/m/Y") }} diff --git a/addons/default/visiosoft/advs-module/src/Http/Controller/advsController.php b/addons/default/visiosoft/advs-module/src/Http/Controller/advsController.php index 9357e4c1d..d09874ce9 100644 --- a/addons/default/visiosoft/advs-module/src/Http/Controller/advsController.php +++ b/addons/default/visiosoft/advs-module/src/Http/Controller/advsController.php @@ -614,6 +614,9 @@ class AdvsController extends PublicController } $isActiveDopings = $this->adv_model->is_enabled('dopings'); + if ($isActiveDopings) { + $isActiveDopings = doping_check_role(); + } return $this->view->make('visiosoft.module.advs::new-ad/preview/preview', compact('adv', 'categories', 'features', 'isActiveDopings', 'configurations'));