change cart to plain post from ajax

This commit is contained in:
2016-01-04 22:02:59 +01:00
parent 2d9b527909
commit 1e206011d0
27 changed files with 622 additions and 349 deletions

View File

@@ -209,6 +209,12 @@ class ProductSaleForm extends Model
$this->transfer->id_user = Yii::$app->user->id;
if ( $status == Transfer::STATUS_PAID){
$this->transfer->paid_by = Yii::$app->user->id;
}
$this->transfer->save();
}