add frontend changes
This commit is contained in:
@@ -68,8 +68,9 @@ class ShoppingCart extends \yii\db\ActiveRecord
|
||||
//delete cart
|
||||
$sql = "UPDATE transfer AS t
|
||||
INNER JOIN shopping_cart AS s ON t.id_transfer = s.id_transfer
|
||||
SET t.status = " . Transfer::STATUS_PAID . " t.paid_at = " . date('Y-m-d H:i:s' )
|
||||
. " WHERE t.status = " . Transfer::STATUS_NOT_PAID;
|
||||
SET t.status = " . Transfer::STATUS_PAID . ", t.paid_at = '" . date('Y-m-d H:i:s' ) ."'"
|
||||
. " WHERE t.status = " . Transfer::STATUS_NOT_PAID
|
||||
. " and s.id_customer = " . $customer->id_customer ;
|
||||
|
||||
$q1 = Yii::$app->db->createCommand($sql);
|
||||
$q1->execute();
|
||||
|
||||
Reference in New Issue
Block a user