Fix hide reception cart
- add property user_cart_on - add property product_sale_default_focus - add property ticket_create-price_editable - add discount product/ticket enabled
This commit is contained in:
@@ -7,6 +7,7 @@ use frontend\components\ReceptionWidget;
|
||||
use yii\bootstrap\ActiveForm;
|
||||
use yii\helpers\Url;
|
||||
use yii\helpers\ArrayHelper;
|
||||
use common\components\Helper;
|
||||
|
||||
/* @var $this yii\web\View */
|
||||
/* @var $form yii\bootstrap\ActiveForm */
|
||||
@@ -30,6 +31,9 @@ if ( isset($model->card) ){
|
||||
$options['discounts'] = Discount::modelsToArray($discounts);
|
||||
$options['id_account'] = Account::readDefault();
|
||||
|
||||
$options['product_sale_default_focus'] = Helper::getProductSaleDefaultFocus();
|
||||
$options['user_cart_on'] = Helper::isUserCartOn();
|
||||
|
||||
|
||||
$this->registerJs ( 'new ProductSell( '. json_encode($options).');' );
|
||||
|
||||
@@ -97,7 +101,9 @@ $this->params['breadcrumbs'][] = Yii::t('frontend/product', 'Sale');
|
||||
<?php if ( $receptionForm->isCardWithCustomer() ){ ?>
|
||||
<?php echo $this->render('_customer_cart' , ['model' => $model]) ?>
|
||||
<?php }?>
|
||||
<?php if ( Helper::isUserCartOn()) {?>
|
||||
<?php echo $this->render('_user_cart' ) ?>
|
||||
<?php }?>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user