From 1ec5e14ddf80eb62b33d93370a1a111cb7ff0c1d Mon Sep 17 00:00:00 2001 From: Sergey Date: Fri, 1 Mar 2019 14:33:52 +0300 Subject: [PATCH] fix model prices --- src/upload/admin/model/extension/retailcrm/prices.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/upload/admin/model/extension/retailcrm/prices.php b/src/upload/admin/model/extension/retailcrm/prices.php index 2b21ae2..fe598c5 100644 --- a/src/upload/admin/model/extension/retailcrm/prices.php +++ b/src/upload/admin/model/extension/retailcrm/prices.php @@ -56,16 +56,13 @@ class ModelExtensionRetailcrmPrices extends Model if (!$specials) { $productPrice = $this->getEmptyPrice(); $prices[] = $this->getPriceRequest($product, $site, $productPrice, $retailcrm); + 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, $retailcrm);