From dcf5f2de146830f572b98ea64215e01676b9283a Mon Sep 17 00:00:00 2001 From: Dominic Watts Date: Thu, 7 May 2020 10:16:00 +0100 Subject: [PATCH] 1.0.8 release reported issues with filter --- Block/Widget/Special.php | 2 +- Model/Layer.php | 2 +- composer.json | 2 +- etc/module.xml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Block/Widget/Special.php b/Block/Widget/Special.php index 1253aec..641b5e2 100644 --- a/Block/Widget/Special.php +++ b/Block/Widget/Special.php @@ -116,7 +116,7 @@ protected function _getSpecialProductsCollection() ) ->addAttributeToFilter('special_price', ['gt' => '0.1']) ->addAttributeToFilter('price', ['gt' => '0.1']) - ->addAttributeToFilter('special_price', ['lt' => new \Zend_Db_Expr('at_price.value')]) + // ->addAttributeToFilter('special_price', ['lt' => new \Zend_Db_Expr('at_price.value')]) ->addAttributeToSort('created_at', 'desc') ->setPageSize($this->getPageSize()) ->setCurPage($this->getCurrentPage()); diff --git a/Model/Layer.php b/Model/Layer.php index 2e509b6..074ef9a 100755 --- a/Model/Layer.php +++ b/Model/Layer.php @@ -100,7 +100,7 @@ public function getProductCollection() $collection->addAttributeToFilter('special_price', ['gt' => '0.1']); $collection->addAttributeToFilter('price', ['gt' => '0.1']); - $collection->addAttributeToFilter('special_price', ['lt' => new \Zend_Db_Expr('at_price.value')]); + // $collection->addAttributeToFilter('special_price', ['lt' => new \Zend_Db_Expr('at_price.value')]); $this->prepareProductCollection($collection); $this->_productCollections['xigen_custom'] = $collection; diff --git a/composer.json b/composer.json index 51f6bf1..44d5509 100755 --- a/composer.json +++ b/composer.json @@ -3,7 +3,7 @@ "description": "Special offers landing page with layered navigation and widget", "type": "magento2-module", "license": "proprietary", - "version": "1.1.7", + "version": "1.1.8", "authors": [ { "name": "Dominic Xigen", diff --git a/etc/module.xml b/etc/module.xml index 2a02ace..0f455e8 100755 --- a/etc/module.xml +++ b/etc/module.xml @@ -1,5 +1,5 @@ - +