Merge pull request #938 from openclassify/muammertop_franch

Move The Buy Package Screen To The End
This commit is contained in:
Dia Shalabi 2021-02-04 11:35:33 +03:00 committed by GitHub
commit 15bdc50927
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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);