Merge pull request #174 from Evgeniy-Goroh/price_upload

не выгружать акционные цены равные нулю
This commit is contained in:
Alex Lushpai 2020-01-09 14:46:01 +03:00 committed by GitHub
commit 9d90c32b17
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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(