add changes to sell product
This commit is contained in:
@@ -18,6 +18,7 @@ ProductSellAsset::register($this);
|
||||
$options = [];
|
||||
|
||||
$options['lookup_product_url'] = Url::toRoute(['product/lookup']);
|
||||
$options['clear_list_url'] = Url::toRoute(['product/clear-list']);
|
||||
$options['sold_items'] = $userTransfers;
|
||||
|
||||
|
||||
@@ -39,6 +40,24 @@ $this->registerJs ( 'new ProductSell( '. json_encode($options).');' );
|
||||
margin-bottom: 3px;
|
||||
}
|
||||
|
||||
.table-transfers thead th{
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.table-transfers tfoot .product-money,
|
||||
.table-transfers tfoot .product-count,
|
||||
.table-transfers tbody .product-money,
|
||||
.table-transfers tbody .product-count,
|
||||
.table-transfers tbody .sale-price
|
||||
{
|
||||
text-align: right;
|
||||
}
|
||||
.table-transfers tbody .product-name,
|
||||
.table-transfers tbody .product-time
|
||||
{
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
<div class='row'>
|
||||
@@ -55,8 +74,8 @@ $this->registerJs ( 'new ProductSell( '. json_encode($options).');' );
|
||||
<?php echo $this->render('_sale_form' ,['model' =>$model , 'lookupModel' =>$lookupModel, 'currencies' => $currencies, 'accounts' => $accounts,'discounts' => $discounts,]) ?>
|
||||
</div>
|
||||
<div class='col-md-6'>
|
||||
<h1><?php echo Yii::t('frontend/product','Sold')?></h1>
|
||||
<h1><?php echo Yii::t('frontend/product','Cart')?></h1>
|
||||
<?php echo $this->render('_sold_items' ) ?>
|
||||
<?php echo Html::a(Yii::t('frontend/product', "Paid"),null,[ 'class' => 'btn btn-primary' ]) ?>
|
||||
<?php echo Html::a(Yii::t('frontend/product', "Paid"),null,[ 'id' => 'btn_paid', 'class' => 'btn btn-primary' ]) ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user