Custom Attribute in Layered NavigationCustom non-attribute based layered navigation. Is this the only way to do it?Filter manufacturer and categories only on custom navigation (dual navigation)Layered Navigation: Price filter on custom collectionCreate new price attribute typeGet initial layered navigation stateNegative price filter in layered navigationLayered navigation missing attributesPrice filter in layered navigation not working correctly with price including tax in magento 2.2.3Magento 2 Layered Navigation Not Displaying PriceMagento 2.3 Layered Navigation Returns all Products, unfiltered

Why were the rules for Proliferate changed?

What chord could the notes 'F A♭ E♭' form?

Make me a minimum magic sum

Why doesn't a particle exert force on itself?

Did Ham the Chimp follow commands, or did he just randomly push levers?

Displaying an Estimated Execution Plan generates CXPACKET, PAGELATCH_SH, and LATCH_EX [ACCESS_METHODS_DATASET_PARENT] waits

All of my Firefox add-ons have been disabled suddenly, how can I re-enable them?

Good introductory book to type theory?

Would a legitimized Baratheon have the best claim for the Iron Throne?

Concatenate all values of the same XML element using XPath/XQuery

Texture vs. Material vs. Shader

Why always 4...dxc6 and not 4...bxc6 in the Ruy Lopez Exchange?

How do I give a darkroom course without negs from the attendees?

Magical Modulo Squares

What's the 2-minute timer on mobile Deutsche Bahn tickets?

Why is there a cap on 401k contributions?

Game artist computer workstation set-up – is this overkill?

Where do 5 or more U.S. counties meet in a single point?

What happens when the drag force exceeds the weight of an object falling into earth?

How to increase speed on my hybrid bike with flat handlebars and 700X35C tyres?

The unknown and unexplained in science fiction

Is there an idiom that means that a clothe fits perfectly?

In the figure, a quarter circle, a semicircle and a circle are mutually tangent inside a square of side length 2. Find the radius of the circle.

What's weird about Proto-Indo-European Stops?



Custom Attribute in Layered Navigation


Custom non-attribute based layered navigation. Is this the only way to do it?Filter manufacturer and categories only on custom navigation (dual navigation)Layered Navigation: Price filter on custom collectionCreate new price attribute typeGet initial layered navigation stateNegative price filter in layered navigationLayered navigation missing attributesPrice filter in layered navigation not working correctly with price including tax in magento 2.2.3Magento 2 Layered Navigation Not Displaying PriceMagento 2.3 Layered Navigation Returns all Products, unfiltered






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








3















I have a custom attribute called m2_price, which is the Metre Squared price of a piece of carpet.



I've enabled it to be filterable with results in the layered navigation and this all works fine.



However, the prices are stored EXCLUDING tax, so the filter is generated based on these prices. Is there any way I can make the filter then add Tax on to the m2_price just how it works with the normal product price?



I've tried searching for this and I've been unable to find anything which even hints to a solution.










share|improve this question






























    3















    I have a custom attribute called m2_price, which is the Metre Squared price of a piece of carpet.



    I've enabled it to be filterable with results in the layered navigation and this all works fine.



    However, the prices are stored EXCLUDING tax, so the filter is generated based on these prices. Is there any way I can make the filter then add Tax on to the m2_price just how it works with the normal product price?



    I've tried searching for this and I've been unable to find anything which even hints to a solution.










    share|improve this question


























      3












      3








      3


      0






      I have a custom attribute called m2_price, which is the Metre Squared price of a piece of carpet.



      I've enabled it to be filterable with results in the layered navigation and this all works fine.



      However, the prices are stored EXCLUDING tax, so the filter is generated based on these prices. Is there any way I can make the filter then add Tax on to the m2_price just how it works with the normal product price?



      I've tried searching for this and I've been unable to find anything which even hints to a solution.










      share|improve this question
















      I have a custom attribute called m2_price, which is the Metre Squared price of a piece of carpet.



      I've enabled it to be filterable with results in the layered navigation and this all works fine.



      However, the prices are stored EXCLUDING tax, so the filter is generated based on these prices. Is there any way I can make the filter then add Tax on to the m2_price just how it works with the normal product price?



      I've tried searching for this and I've been unable to find anything which even hints to a solution.







      product attributes price layered-navigation custom-attributes






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Sep 17 '15 at 19:39









      7ochem

      5,89993770




      5,89993770










      asked Jul 13 '15 at 11:49









      KarlKarl

      176219




      176219




















          2 Answers
          2






          active

          oldest

          votes


















          0














          There's an issue with app/Mage/Catalog/Model/Resource/Layer/Filter/Attribute.php



          Swap out your class with the following and it problem should be solved.



          class Mage_Catalog_Model_Resource_Layer_Filter_Attribute extends Mage_Core_Model_Resource_Db_Abstract

          /**
          * Initialize connection and define main table name
          *
          */
          protected function _construct()

          $this->_init('catalog/product_index_eav', 'entity_id');


          /**
          * Apply attribute filter to product collection
          *
          * @param Mage_Catalog_Model_Layer_Filter_Attribute $filter
          * @param int $value
          * @return Mage_Catalog_Model_Resource_Layer_Filter_Attribute
          */
          public function applyFilterToCollection($filter, $value)


          $filterSingleton = FilterSingleton::singleton();

          if (!isset($filterSingleton->return))

          $collection = $filter->getLayer()->getProductCollection();
          $attribute = $filter->getAttributeModel();
          $connection = $this->_getReadAdapter();
          $tableAlias = $attribute->getAttributeCode() . '_idx';
          $conditions = array(
          "$tableAlias.entity_id = e.entity_id",
          $connection->quoteInto("$tableAlias.attribute_id = ?", $attribute->getAttributeId()),
          $connection->quoteInto("$tableAlias.store_id = ?", $collection->getStoreId()),
          $connection->quoteInto("$tableAlias.value = ?", $value)
          );

          $collection->getSelect()->join(
          array($tableAlias => $this->getMainTable()),
          join(' AND ', $conditions),
          array()
          );

          $filterSingleton->return = $this;

          return $this;

          else
          return $filterSingleton->return;



          /**
          * Retrieve array with products counts per attribute option
          *
          * @param Mage_Catalog_Model_Layer_Filter_Attribute $filter
          * @return array
          */
          public function getCount($filter)

          // clone select from collection with filters
          $select = clone $filter->getLayer()->getProductCollection()->getSelect();
          // reset columns, order and limitation conditions
          $select->reset(Zend_Db_Select::COLUMNS);
          $select->reset(Zend_Db_Select::ORDER);
          $select->reset(Zend_Db_Select::LIMIT_COUNT);
          $select->reset(Zend_Db_Select::LIMIT_OFFSET);

          $connection = $this->_getReadAdapter();
          $attribute = $filter->getAttributeModel();
          $tableAlias = sprintf('%s_idx', $attribute->getAttributeCode());
          $conditions = array(
          "$tableAlias.entity_id = e.entity_id",
          $connection->quoteInto("$tableAlias.attribute_id = ?", $attribute->getAttributeId()),
          $connection->quoteInto("$tableAlias.store_id = ?", $filter->getStoreId()),
          );

          $select
          ->join(
          array($tableAlias => $this->getMainTable()),
          join(' AND ', $conditions),
          array('value', 'count' => new Zend_Db_Expr("COUNT($tableAlias.entity_id)")))
          ->group("$tableAlias.value");

          return $connection->fetchPairs($select);


          class FilterSingleton

          static private $instance;

          public $return = null;

          private function __construct()



          static public function singleton()
          if (!isset(self::$instance))
          $c = __CLASS__;
          self::$instance = new $c;


          return self::$instance;




          visit:-http://islamic-posters.aceph.me/post/21851233473/magento-you-cannot-define-a-correlation-name






          share|improve this answer























          • I changed this but it did not fix my problem.

            – Karl
            Jul 13 '15 at 13:21






          • 1





            Bad idea. How does this solve the OPs question. What is this issue you are refering to. What was fixed. Would help clarify. Never a great idea to just go and replace core files like this.

            – ProxiBlue
            Aug 24 '16 at 23:22


















          0














          I would start by looking how magento itself do with the built in price, these clases should be an starting point:



          Mage_Catalog_Block_Layer_Filter_Price and from here you can come to: Mage_Catalog_Model_Layer_Filter_Price try to find how price filters are handle or create your layer filter inheriting from the default price one. There is a big amount of functionality involved though.



          NOTE: A workaround I would try is to specify in front end that those prices are without taxes and then create a custom total for applying taxes over these values when adding product to cart.






          share|improve this answer























            Your Answer








            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "479"
            ;
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function()
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled)
            StackExchange.using("snippets", function()
            createEditor();
            );

            else
            createEditor();

            );

            function createEditor()
            StackExchange.prepareEditor(
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: false,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            bindNavPrevention: true,
            postfix: "",
            imageUploader:
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            ,
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );













            draft saved

            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f74178%2fcustom-attribute-in-layered-navigation%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown

























            2 Answers
            2






            active

            oldest

            votes








            2 Answers
            2






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0














            There's an issue with app/Mage/Catalog/Model/Resource/Layer/Filter/Attribute.php



            Swap out your class with the following and it problem should be solved.



            class Mage_Catalog_Model_Resource_Layer_Filter_Attribute extends Mage_Core_Model_Resource_Db_Abstract

            /**
            * Initialize connection and define main table name
            *
            */
            protected function _construct()

            $this->_init('catalog/product_index_eav', 'entity_id');


            /**
            * Apply attribute filter to product collection
            *
            * @param Mage_Catalog_Model_Layer_Filter_Attribute $filter
            * @param int $value
            * @return Mage_Catalog_Model_Resource_Layer_Filter_Attribute
            */
            public function applyFilterToCollection($filter, $value)


            $filterSingleton = FilterSingleton::singleton();

            if (!isset($filterSingleton->return))

            $collection = $filter->getLayer()->getProductCollection();
            $attribute = $filter->getAttributeModel();
            $connection = $this->_getReadAdapter();
            $tableAlias = $attribute->getAttributeCode() . '_idx';
            $conditions = array(
            "$tableAlias.entity_id = e.entity_id",
            $connection->quoteInto("$tableAlias.attribute_id = ?", $attribute->getAttributeId()),
            $connection->quoteInto("$tableAlias.store_id = ?", $collection->getStoreId()),
            $connection->quoteInto("$tableAlias.value = ?", $value)
            );

            $collection->getSelect()->join(
            array($tableAlias => $this->getMainTable()),
            join(' AND ', $conditions),
            array()
            );

            $filterSingleton->return = $this;

            return $this;

            else
            return $filterSingleton->return;



            /**
            * Retrieve array with products counts per attribute option
            *
            * @param Mage_Catalog_Model_Layer_Filter_Attribute $filter
            * @return array
            */
            public function getCount($filter)

            // clone select from collection with filters
            $select = clone $filter->getLayer()->getProductCollection()->getSelect();
            // reset columns, order and limitation conditions
            $select->reset(Zend_Db_Select::COLUMNS);
            $select->reset(Zend_Db_Select::ORDER);
            $select->reset(Zend_Db_Select::LIMIT_COUNT);
            $select->reset(Zend_Db_Select::LIMIT_OFFSET);

            $connection = $this->_getReadAdapter();
            $attribute = $filter->getAttributeModel();
            $tableAlias = sprintf('%s_idx', $attribute->getAttributeCode());
            $conditions = array(
            "$tableAlias.entity_id = e.entity_id",
            $connection->quoteInto("$tableAlias.attribute_id = ?", $attribute->getAttributeId()),
            $connection->quoteInto("$tableAlias.store_id = ?", $filter->getStoreId()),
            );

            $select
            ->join(
            array($tableAlias => $this->getMainTable()),
            join(' AND ', $conditions),
            array('value', 'count' => new Zend_Db_Expr("COUNT($tableAlias.entity_id)")))
            ->group("$tableAlias.value");

            return $connection->fetchPairs($select);


            class FilterSingleton

            static private $instance;

            public $return = null;

            private function __construct()



            static public function singleton()
            if (!isset(self::$instance))
            $c = __CLASS__;
            self::$instance = new $c;


            return self::$instance;




            visit:-http://islamic-posters.aceph.me/post/21851233473/magento-you-cannot-define-a-correlation-name






            share|improve this answer























            • I changed this but it did not fix my problem.

              – Karl
              Jul 13 '15 at 13:21






            • 1





              Bad idea. How does this solve the OPs question. What is this issue you are refering to. What was fixed. Would help clarify. Never a great idea to just go and replace core files like this.

              – ProxiBlue
              Aug 24 '16 at 23:22















            0














            There's an issue with app/Mage/Catalog/Model/Resource/Layer/Filter/Attribute.php



            Swap out your class with the following and it problem should be solved.



            class Mage_Catalog_Model_Resource_Layer_Filter_Attribute extends Mage_Core_Model_Resource_Db_Abstract

            /**
            * Initialize connection and define main table name
            *
            */
            protected function _construct()

            $this->_init('catalog/product_index_eav', 'entity_id');


            /**
            * Apply attribute filter to product collection
            *
            * @param Mage_Catalog_Model_Layer_Filter_Attribute $filter
            * @param int $value
            * @return Mage_Catalog_Model_Resource_Layer_Filter_Attribute
            */
            public function applyFilterToCollection($filter, $value)


            $filterSingleton = FilterSingleton::singleton();

            if (!isset($filterSingleton->return))

            $collection = $filter->getLayer()->getProductCollection();
            $attribute = $filter->getAttributeModel();
            $connection = $this->_getReadAdapter();
            $tableAlias = $attribute->getAttributeCode() . '_idx';
            $conditions = array(
            "$tableAlias.entity_id = e.entity_id",
            $connection->quoteInto("$tableAlias.attribute_id = ?", $attribute->getAttributeId()),
            $connection->quoteInto("$tableAlias.store_id = ?", $collection->getStoreId()),
            $connection->quoteInto("$tableAlias.value = ?", $value)
            );

            $collection->getSelect()->join(
            array($tableAlias => $this->getMainTable()),
            join(' AND ', $conditions),
            array()
            );

            $filterSingleton->return = $this;

            return $this;

            else
            return $filterSingleton->return;



            /**
            * Retrieve array with products counts per attribute option
            *
            * @param Mage_Catalog_Model_Layer_Filter_Attribute $filter
            * @return array
            */
            public function getCount($filter)

            // clone select from collection with filters
            $select = clone $filter->getLayer()->getProductCollection()->getSelect();
            // reset columns, order and limitation conditions
            $select->reset(Zend_Db_Select::COLUMNS);
            $select->reset(Zend_Db_Select::ORDER);
            $select->reset(Zend_Db_Select::LIMIT_COUNT);
            $select->reset(Zend_Db_Select::LIMIT_OFFSET);

            $connection = $this->_getReadAdapter();
            $attribute = $filter->getAttributeModel();
            $tableAlias = sprintf('%s_idx', $attribute->getAttributeCode());
            $conditions = array(
            "$tableAlias.entity_id = e.entity_id",
            $connection->quoteInto("$tableAlias.attribute_id = ?", $attribute->getAttributeId()),
            $connection->quoteInto("$tableAlias.store_id = ?", $filter->getStoreId()),
            );

            $select
            ->join(
            array($tableAlias => $this->getMainTable()),
            join(' AND ', $conditions),
            array('value', 'count' => new Zend_Db_Expr("COUNT($tableAlias.entity_id)")))
            ->group("$tableAlias.value");

            return $connection->fetchPairs($select);


            class FilterSingleton

            static private $instance;

            public $return = null;

            private function __construct()



            static public function singleton()
            if (!isset(self::$instance))
            $c = __CLASS__;
            self::$instance = new $c;


            return self::$instance;




            visit:-http://islamic-posters.aceph.me/post/21851233473/magento-you-cannot-define-a-correlation-name






            share|improve this answer























            • I changed this but it did not fix my problem.

              – Karl
              Jul 13 '15 at 13:21






            • 1





              Bad idea. How does this solve the OPs question. What is this issue you are refering to. What was fixed. Would help clarify. Never a great idea to just go and replace core files like this.

              – ProxiBlue
              Aug 24 '16 at 23:22













            0












            0








            0







            There's an issue with app/Mage/Catalog/Model/Resource/Layer/Filter/Attribute.php



            Swap out your class with the following and it problem should be solved.



            class Mage_Catalog_Model_Resource_Layer_Filter_Attribute extends Mage_Core_Model_Resource_Db_Abstract

            /**
            * Initialize connection and define main table name
            *
            */
            protected function _construct()

            $this->_init('catalog/product_index_eav', 'entity_id');


            /**
            * Apply attribute filter to product collection
            *
            * @param Mage_Catalog_Model_Layer_Filter_Attribute $filter
            * @param int $value
            * @return Mage_Catalog_Model_Resource_Layer_Filter_Attribute
            */
            public function applyFilterToCollection($filter, $value)


            $filterSingleton = FilterSingleton::singleton();

            if (!isset($filterSingleton->return))

            $collection = $filter->getLayer()->getProductCollection();
            $attribute = $filter->getAttributeModel();
            $connection = $this->_getReadAdapter();
            $tableAlias = $attribute->getAttributeCode() . '_idx';
            $conditions = array(
            "$tableAlias.entity_id = e.entity_id",
            $connection->quoteInto("$tableAlias.attribute_id = ?", $attribute->getAttributeId()),
            $connection->quoteInto("$tableAlias.store_id = ?", $collection->getStoreId()),
            $connection->quoteInto("$tableAlias.value = ?", $value)
            );

            $collection->getSelect()->join(
            array($tableAlias => $this->getMainTable()),
            join(' AND ', $conditions),
            array()
            );

            $filterSingleton->return = $this;

            return $this;

            else
            return $filterSingleton->return;



            /**
            * Retrieve array with products counts per attribute option
            *
            * @param Mage_Catalog_Model_Layer_Filter_Attribute $filter
            * @return array
            */
            public function getCount($filter)

            // clone select from collection with filters
            $select = clone $filter->getLayer()->getProductCollection()->getSelect();
            // reset columns, order and limitation conditions
            $select->reset(Zend_Db_Select::COLUMNS);
            $select->reset(Zend_Db_Select::ORDER);
            $select->reset(Zend_Db_Select::LIMIT_COUNT);
            $select->reset(Zend_Db_Select::LIMIT_OFFSET);

            $connection = $this->_getReadAdapter();
            $attribute = $filter->getAttributeModel();
            $tableAlias = sprintf('%s_idx', $attribute->getAttributeCode());
            $conditions = array(
            "$tableAlias.entity_id = e.entity_id",
            $connection->quoteInto("$tableAlias.attribute_id = ?", $attribute->getAttributeId()),
            $connection->quoteInto("$tableAlias.store_id = ?", $filter->getStoreId()),
            );

            $select
            ->join(
            array($tableAlias => $this->getMainTable()),
            join(' AND ', $conditions),
            array('value', 'count' => new Zend_Db_Expr("COUNT($tableAlias.entity_id)")))
            ->group("$tableAlias.value");

            return $connection->fetchPairs($select);


            class FilterSingleton

            static private $instance;

            public $return = null;

            private function __construct()



            static public function singleton()
            if (!isset(self::$instance))
            $c = __CLASS__;
            self::$instance = new $c;


            return self::$instance;




            visit:-http://islamic-posters.aceph.me/post/21851233473/magento-you-cannot-define-a-correlation-name






            share|improve this answer













            There's an issue with app/Mage/Catalog/Model/Resource/Layer/Filter/Attribute.php



            Swap out your class with the following and it problem should be solved.



            class Mage_Catalog_Model_Resource_Layer_Filter_Attribute extends Mage_Core_Model_Resource_Db_Abstract

            /**
            * Initialize connection and define main table name
            *
            */
            protected function _construct()

            $this->_init('catalog/product_index_eav', 'entity_id');


            /**
            * Apply attribute filter to product collection
            *
            * @param Mage_Catalog_Model_Layer_Filter_Attribute $filter
            * @param int $value
            * @return Mage_Catalog_Model_Resource_Layer_Filter_Attribute
            */
            public function applyFilterToCollection($filter, $value)


            $filterSingleton = FilterSingleton::singleton();

            if (!isset($filterSingleton->return))

            $collection = $filter->getLayer()->getProductCollection();
            $attribute = $filter->getAttributeModel();
            $connection = $this->_getReadAdapter();
            $tableAlias = $attribute->getAttributeCode() . '_idx';
            $conditions = array(
            "$tableAlias.entity_id = e.entity_id",
            $connection->quoteInto("$tableAlias.attribute_id = ?", $attribute->getAttributeId()),
            $connection->quoteInto("$tableAlias.store_id = ?", $collection->getStoreId()),
            $connection->quoteInto("$tableAlias.value = ?", $value)
            );

            $collection->getSelect()->join(
            array($tableAlias => $this->getMainTable()),
            join(' AND ', $conditions),
            array()
            );

            $filterSingleton->return = $this;

            return $this;

            else
            return $filterSingleton->return;



            /**
            * Retrieve array with products counts per attribute option
            *
            * @param Mage_Catalog_Model_Layer_Filter_Attribute $filter
            * @return array
            */
            public function getCount($filter)

            // clone select from collection with filters
            $select = clone $filter->getLayer()->getProductCollection()->getSelect();
            // reset columns, order and limitation conditions
            $select->reset(Zend_Db_Select::COLUMNS);
            $select->reset(Zend_Db_Select::ORDER);
            $select->reset(Zend_Db_Select::LIMIT_COUNT);
            $select->reset(Zend_Db_Select::LIMIT_OFFSET);

            $connection = $this->_getReadAdapter();
            $attribute = $filter->getAttributeModel();
            $tableAlias = sprintf('%s_idx', $attribute->getAttributeCode());
            $conditions = array(
            "$tableAlias.entity_id = e.entity_id",
            $connection->quoteInto("$tableAlias.attribute_id = ?", $attribute->getAttributeId()),
            $connection->quoteInto("$tableAlias.store_id = ?", $filter->getStoreId()),
            );

            $select
            ->join(
            array($tableAlias => $this->getMainTable()),
            join(' AND ', $conditions),
            array('value', 'count' => new Zend_Db_Expr("COUNT($tableAlias.entity_id)")))
            ->group("$tableAlias.value");

            return $connection->fetchPairs($select);


            class FilterSingleton

            static private $instance;

            public $return = null;

            private function __construct()



            static public function singleton()
            if (!isset(self::$instance))
            $c = __CLASS__;
            self::$instance = new $c;


            return self::$instance;




            visit:-http://islamic-posters.aceph.me/post/21851233473/magento-you-cannot-define-a-correlation-name







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Jul 13 '15 at 12:09









            Ashvin MonparaAshvin Monpara

            1,094620




            1,094620












            • I changed this but it did not fix my problem.

              – Karl
              Jul 13 '15 at 13:21






            • 1





              Bad idea. How does this solve the OPs question. What is this issue you are refering to. What was fixed. Would help clarify. Never a great idea to just go and replace core files like this.

              – ProxiBlue
              Aug 24 '16 at 23:22

















            • I changed this but it did not fix my problem.

              – Karl
              Jul 13 '15 at 13:21






            • 1





              Bad idea. How does this solve the OPs question. What is this issue you are refering to. What was fixed. Would help clarify. Never a great idea to just go and replace core files like this.

              – ProxiBlue
              Aug 24 '16 at 23:22
















            I changed this but it did not fix my problem.

            – Karl
            Jul 13 '15 at 13:21





            I changed this but it did not fix my problem.

            – Karl
            Jul 13 '15 at 13:21




            1




            1





            Bad idea. How does this solve the OPs question. What is this issue you are refering to. What was fixed. Would help clarify. Never a great idea to just go and replace core files like this.

            – ProxiBlue
            Aug 24 '16 at 23:22





            Bad idea. How does this solve the OPs question. What is this issue you are refering to. What was fixed. Would help clarify. Never a great idea to just go and replace core files like this.

            – ProxiBlue
            Aug 24 '16 at 23:22













            0














            I would start by looking how magento itself do with the built in price, these clases should be an starting point:



            Mage_Catalog_Block_Layer_Filter_Price and from here you can come to: Mage_Catalog_Model_Layer_Filter_Price try to find how price filters are handle or create your layer filter inheriting from the default price one. There is a big amount of functionality involved though.



            NOTE: A workaround I would try is to specify in front end that those prices are without taxes and then create a custom total for applying taxes over these values when adding product to cart.






            share|improve this answer



























              0














              I would start by looking how magento itself do with the built in price, these clases should be an starting point:



              Mage_Catalog_Block_Layer_Filter_Price and from here you can come to: Mage_Catalog_Model_Layer_Filter_Price try to find how price filters are handle or create your layer filter inheriting from the default price one. There is a big amount of functionality involved though.



              NOTE: A workaround I would try is to specify in front end that those prices are without taxes and then create a custom total for applying taxes over these values when adding product to cart.






              share|improve this answer

























                0












                0








                0







                I would start by looking how magento itself do with the built in price, these clases should be an starting point:



                Mage_Catalog_Block_Layer_Filter_Price and from here you can come to: Mage_Catalog_Model_Layer_Filter_Price try to find how price filters are handle or create your layer filter inheriting from the default price one. There is a big amount of functionality involved though.



                NOTE: A workaround I would try is to specify in front end that those prices are without taxes and then create a custom total for applying taxes over these values when adding product to cart.






                share|improve this answer













                I would start by looking how magento itself do with the built in price, these clases should be an starting point:



                Mage_Catalog_Block_Layer_Filter_Price and from here you can come to: Mage_Catalog_Model_Layer_Filter_Price try to find how price filters are handle or create your layer filter inheriting from the default price one. There is a big amount of functionality involved though.



                NOTE: A workaround I would try is to specify in front end that those prices are without taxes and then create a custom total for applying taxes over these values when adding product to cart.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Mar 10 '16 at 7:40









                davidmpazdavidmpaz

                1256




                1256



























                    draft saved

                    draft discarded
















































                    Thanks for contributing an answer to Magento Stack Exchange!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid


                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.

                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f74178%2fcustom-attribute-in-layered-navigation%23new-answer', 'question_page');

                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Get product attribute by attribute group code in magento 2get product attribute by product attribute group in magento 2Magento 2 Log Bundle Product Data in List Page?How to get all product attribute of a attribute group of Default attribute set?Magento 2.1 Create a filter in the product grid by new attributeMagento 2 : Get Product Attribute values By GroupMagento 2 How to get all existing values for one attributeMagento 2 get custom attribute of a single product inside a pluginMagento 2.3 How to get all the Multi Source Inventory (MSI) locations collection in custom module?Magento2: how to develop rest API to get new productsGet product attribute by attribute group code ( [attribute_group_code] ) in magento 2

                    Category:9 (number) SubcategoriesMedia in category "9 (number)"Navigation menuUpload mediaGND ID: 4485639-8Library of Congress authority ID: sh85091979ReasonatorScholiaStatistics

                    Magento 2.3: How do i solve this, Not registered handle, on custom form?How can i rewrite TierPrice Block in Magento2magento 2 captcha not rendering if I override layout xmlmain.CRITICAL: Plugin class doesn't existMagento 2 : Problem while adding custom button order view page?Magento 2.2.5: Overriding Admin Controller sales/orderMagento 2.2.5: Add, Update and Delete existing products Custom OptionsMagento 2.3 : File Upload issue in UI Component FormMagento2 Not registered handleHow to configured Form Builder Js in my custom magento 2.3.0 module?Magento 2.3. How to create image upload field in an admin form