Merge pull request #981 from jitendra-webkul/jitendra
Updated cart for custom_price
This commit is contained in:
commit
799266e531
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue