Merge pull request #981 from jitendra-webkul/jitendra

Updated cart for custom_price
This commit is contained in:
Jitendra Singh 2019-06-07 11:19:28 +05:30 committed by GitHub
commit 799266e531
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -866,7 +866,7 @@ class Cart {
} else if ($this->price->getMinimalPrice($item->child->product_flat) != $item->price) {
// $price = (float) $item->custom_price ? $item->custom_price : $item->child->product->price;
if ((float)$item->custom_price) {
if (! is_null($item->custom_price)) {
$price = $item->custom_price;
} else {
$price = $this->price->getMinimalPrice($item->child->product_flat);
@ -890,7 +890,7 @@ class Cart {
} else if ($this->price->getMinimalPrice($productFlat) != $item->price) {
// $price = (float) $item->custom_price ? $item->custom_price : $item->product->price;
if ((float)$item->custom_price) {
if (! is_null($item->custom_price)) {
$price = $item->custom_price;
} else {
$price = $this->price->getMinimalPrice($productFlat);