Parcourir la source

[Site] Signup : correctif chargement modules payants

feature/souke
Guillaume Bourgeois il y a 1 an
Parent
révision
81ca7b5a8a
2 fichiers modifiés avec 5 ajouts et 1 suppressions
  1. +4
    -0
      frontend/controllers/SiteController.php
  2. +1
    -1
      frontend/views/site/signup.php

+ 4
- 0
frontend/controllers/SiteController.php Voir le fichier

@@ -345,10 +345,14 @@ class SiteController extends FrontendController
$dataProducers = $producersArray['data'];
$optionsProducers = $producersArray['options'];


$paidFeaturesArray = $this->getFeatureModule()->getRepository()->findPaidFeatures();

return $this->render('signup', [
'model' => $model,
'dataProducers' => $dataProducers,
'dataProviderPrices' => $this->getDataProviderPrices(),
'paidFeaturesArray' => $paidFeaturesArray,
'optionsProducers' => $optionsProducers,
]);
}

+ 1
- 1
frontend/views/site/signup.php Voir le fichier

@@ -141,7 +141,7 @@ $this->params['breadcrumbs'][] = $this->title;
<h4 class="modal-title" id="myModalLabel">Tarifs</h4>
</div>
<div class="modal-body">
<?= $this->render('../site/_prices_producer', ['dataProviderPrices' => $dataProviderPrices]); ?>
<?= $this->render('../site/_prices_producer', ['dataProviderPrices' => $dataProviderPrices, 'paidFeaturesArray' => $paidFeaturesArray]); ?>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Fermer</button>

Chargement…
Annuler
Enregistrer