mirror of
https://github.com/openclassify/openclassify.git
synced 2026-01-11 18:01:10 -06:00
Move The Buy Package Screen To The End
This commit is contained in:
parent
1d6d6205d2
commit
23a3a8cdaf
@ -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]) %}
|
||||
|
||||
@ -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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user