fix model prices

This commit is contained in:
Sergey 2019-03-01 14:27:46 +03:00
parent 48ccded014
commit 9fedcb096c

View File

@ -70,16 +70,13 @@ class ModelExtensionRetailcrmPrices extends Model
if (!$specials) {
$productPrice = $this->getEmptyPrice();
$prices[] = $this->getPriceRequest($product, $site, $productPrice);
continue;
}
$productPrice = array();
if (is_array($specials) && count($specials)) {
$productPrice = ModelExtensionRetailcrmPrices::getSpecialPrice($specials);
}
if (empty($productPrice)) {
continue;
$productPrice = $this->getSpecialPrice($specials);
}
$prices[] = $this->getPriceRequest($product, $site, $productPrice);