Move The Buy Package Screen To The End

This commit is contained in:
Muammer Top 2021-02-04 10:42:41 +03:00
parent 1d6d6205d2
commit 23a3a8cdaf
2 changed files with 4 additions and 3 deletions

View File

@ -11,7 +11,9 @@
</p>
</div>
<div class="preview-actions text-center">
{% if isActiveDopings %}
{% if isActive('packages') and setting_value('visiosoft.module.packages::move_the_buy_package_to_the_end') %}
{% set continueLink = url_route('visiosoft.module.packages::add_package', [adv.id]) %}
{% elseif isActive('dopings') %}
{% set continueLink = url_route('add_doping', [adv.id]) %}
{% else %}
{% set continueLink = url_route('adv_detail_seo', [adv.slug, adv.id]) %}

View File

@ -674,8 +674,7 @@ class AdvsController extends PublicController
public function getCatsForNewAd($id)
{
if ($this->adv_model->is_enabled('packages')) {
if ($this->adv_model->is_enabled('packages') and !setting_value('visiosoft.module.packages::move_the_buy_package_to_the_end')) {
$cats = app('Visiosoft\PackagesModule\Http\Controller\PackageFEController')->AdLimitForCategorySelection($id);
} else {
$cats = $this->getCats($id);