Skip to content

Commit

Permalink
Update Order.php
Browse files Browse the repository at this point in the history
  • Loading branch information
ShaiMagal authored Aug 20, 2024
1 parent b28e5f0 commit 74d5c5c
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions classes/order/Order.php
Original file line number Diff line number Diff line change
Expand Up @@ -752,10 +752,7 @@ protected function setProductCurrentStock(&$product)
$product['current_stock'] = StockAvailable::getQuantityAvailableByProduct($product['product_id'], $product['product_attribute_id'], (int) $this->id_shop);
}

$product['location'] = StockAvailable::getLocation($product['product_id'], $product['product_attribute_id'], (int) $this->id_shop);
if ($product['location'] == null) {
$product['location'] = false;
}
$product['location'] = (string) StockAvailable::getLocation($product['product_id'], $product['product_attribute_id'], (int) $this->id_shop);
}

/**
Expand Down

0 comments on commit 74d5c5c

Please sign in to comment.