не выгружать акционные цены равные нулю

This commit is contained in:
gorokh 2019-12-13 12:43:33 +03:00
parent 82ff3628cd
commit 81737b4df3

View File

@ -129,6 +129,9 @@ class ModelExtensionRetailcrmPrices extends Model
$price = array(); $price = array();
foreach($productPrice as $k => $v) { foreach($productPrice as $k => $v) {
if (isset($v['price']) && ($v['price'] + $optionsValues['price'] == 0)) {
continue;
}
if (isset($this->settings[$this->moduleTitle . '_special_' . $k])) { if (isset($this->settings[$this->moduleTitle . '_special_' . $k])) {
$price[] = array( $price[] = array(