cart updated for convert price

This commit is contained in:
rahul shukla 2019-05-31 12:48:04 +05:30
parent ba076f15f5
commit 12e93b3f58
1 changed files with 3 additions and 3 deletions

View File

@ -346,7 +346,7 @@ class Cart {
if ($childData != null) {
$childData['parent_id'] = $item->id;
$this->cartItem->create($childData);
}
@ -869,7 +869,7 @@ class Cart {
}
$item->update([
'price' => $price,
'price' => core()->convertPrice($price),
'base_price' => $price,
'total' => core()->convertPrice($price * ($item->quantity)),
'base_total' => $price * ($item->quantity),
@ -893,7 +893,7 @@ class Cart {
}
$item->update([
'price' => $price,
'price' => core()->convertPrice($price),
'base_price' => $price,
'total' => core()->convertPrice($price * ($item->quantity)),
'base_total' => $price * ($item->quantity),