diff --git a/Service/ProductData/AttributeCollector/Data/Price.php b/Service/ProductData/AttributeCollector/Data/Price.php index ca765fb..9ed560b 100755 --- a/Service/ProductData/AttributeCollector/Data/Price.php +++ b/Service/ProductData/AttributeCollector/Data/Price.php @@ -133,6 +133,7 @@ public function execute( 'sales_price' => $percent * $this->salesPrice, 'min_price' => $percent * $this->minPrice, 'max_price' => $percent * $this->maxPrice, + 'special_price' => $percent * $this->specialPrice, 'total_price' => $percent * $this->totalPrice, 'sales_date_range' => $this->getSpecialPriceDateRang($product), 'discount_perc' => $this->getDiscountPercentage(), @@ -357,8 +358,8 @@ private function setSimplePrices($product) $this->price = $product->getData('price') !== (float)0 ? $product->getData('price') : null; $this->finalPrice = $product->getData('final_price') !== (float)0 ? $product->getData('final_price') : null; - $this->specialPrice = $product->getData('special_price') !== (float)0 - ? $product->getData('special_price') : null; + $this->specialPrice = $product->getData('special_price') + ? $product->getData('special_price') : 0; $this->minPrice = $product['min_price'] >= 0 ? $product['min_price'] : null; $this->maxPrice = $product['max_price'] >= 0 ? $product['max_price'] : null; } diff --git a/composer.json b/composer.json index ac17569..33e7391 100755 --- a/composer.json +++ b/composer.json @@ -2,7 +2,7 @@ "name": "datatrics/magento2-integration", "description": "Datatrics Connect extension for Magento 2", "type": "magento2-module", - "version": "1.6.4", + "version": "1.6.5", "license": [ "BSD-2-Clause" ], diff --git a/etc/config.xml b/etc/config.xml index 8aefb21..e02dce0 100755 --- a/etc/config.xml +++ b/etc/config.xml @@ -10,7 +10,7 @@ - v1.6.4 + v1.6.5 0 Magento 2 0