How to set custom price range in magento 1.9?Show Price Range of Simple Product having Custom Option instead of Base PriceLayered Navigation Price Range input form?Change Product Price That effects the price range in Layerd NavigationRange in custom attribute in magento, layered navigationPrice filter with fixed price in magentoHow to change price range filter Magento 2How to get product using price range magentoPrice filter not showing proper price range in Magento 1.7Magento 1.9 : How to apply more than one price range on product collection

Avoiding racist tropes in fantasy

State-of-the-art algorithms for solving linear programming problems

Would it be possible to have a GMO that produces chocolate?

Algorithms vs LP or MIP

Is there any way to keep a player from killing an NPC?

Round towards zero

Confirming resignation after resignation letter ripped up

Couple of slangs I've heard when watching anime

How to gently end involvement with an online community?

Use of ら conditional form plus なら

antonym of "billable"

Tensorflow - logistic regrssion -oneHot Encoder - Transformed array of differt size for both train and test

Are the players on the same team as the DM?

Is there any practical application for performing a double Fourier transform? ...or an inverse Fourier transform on a time-domain input?

How to prevent clipped screen edges on my TV, HDMI-connected?

What is the difference between Major and Minor Bug?

“T” in subscript in formulas

Architectural feasibility of a tiered circular stone keep

What is a CirKle Word™?

Who was president of the USA?

What would be the challenges to taking off and landing a typical passenger jet at FL300?

How do you harvest carrots in creative mode?

Is immersion of utensils (tevila) valid before koshering (hagala)?

Why is there so little discussion / research on the philosophy of precision?



How to set custom price range in magento 1.9?


Show Price Range of Simple Product having Custom Option instead of Base PriceLayered Navigation Price Range input form?Change Product Price That effects the price range in Layerd NavigationRange in custom attribute in magento, layered navigationPrice filter with fixed price in magentoHow to change price range filter Magento 2How to get product using price range magentoPrice filter not showing proper price range in Magento 1.7Magento 1.9 : How to apply more than one price range on product collection






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








0















I want to show the price range Like this



Up to Rs 10000

From 10000 to 25000

From 25000 to 50000

From 50000 to 100000

From 100000 to 300000

Above 300000


How to implement this?










share|improve this question
































    0















    I want to show the price range Like this



    Up to Rs 10000

    From 10000 to 25000

    From 25000 to 50000

    From 50000 to 100000

    From 100000 to 300000

    Above 300000


    How to implement this?










    share|improve this question




























      0












      0








      0








      I want to show the price range Like this



      Up to Rs 10000

      From 10000 to 25000

      From 25000 to 50000

      From 50000 to 100000

      From 100000 to 300000

      Above 300000


      How to implement this?










      share|improve this question
















      I want to show the price range Like this



      Up to Rs 10000

      From 10000 to 25000

      From 25000 to 50000

      From 50000 to 100000

      From 100000 to 300000

      Above 300000


      How to implement this?







      magento-1.9 filter custom-prices






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Aug 12 at 12:05









      moni patel

      239 bronze badges




      239 bronze badges










      asked Aug 12 at 6:02









      Dharmendra PatelDharmendra Patel

      11 bronze badge




      11 bronze badge























          2 Answers
          2






          active

          oldest

          votes


















          0















          You can refer to this to show price range for custom options for simple products




          https://magento.stackexchange.com/a/152535/72475







          share|improve this answer

























          • I want to add custom price range in filter.

            – Dharmendra Patel
            Aug 12 at 7:09


















          0















          Add custom price range filter using block. Create a custom block file and then create one function for that fixed price range and call this "getPrice()" function in this file rwddefaulttemplatecataloglayerview.phtml and it's working for me.



          Block File :




          class VendorName_ModuleName_Block_Sidebar extends Mage_Catalog_Block_Product_List {



          public function getPrice()



          $currentUrl = Mage::registry('current_category')->getUrl();
          //$currentUrl = Mage::helper('core/url')->getCurrentUrl();
          $productCollection = $this->getLoadedProductCollection();
          $productCollection->addAttributeToSort('price', 'desc')
          ->setPageSize(1)
          ->load();
          $maxPrice = round($productCollection->getFirstItem()->getPrice(),2);
          $minPrice = round($productCollection->getFirstItem()->getMinimalPrice(),2);

          $priceFilterHtml = '';
          if($maxPrice <= 500)
          $priceFilterHtml .= "<ul>
          <li><a href= ".$currentUrl."?price=1%2C500>0.00 - ".$maxPrice."</a></li>
          </ul>";
          else
          $priceFilterHtml .= "<ul>
          <li><a href=".$currentUrl."?price=1%2C10000>0.00 - 10,000</a></li>
          <li><a href=".$currentUrl."?price=1.6666667%2C15000>10,000 - 25,000</a></li>
          <li><a href=".$currentUrl."?price=2%2C25000>25,000 - 50,000</a></li>
          <li><a href=".$currentUrl."?price=2%2C50000>50,000- 100,000</a></li>
          <li><a href=".$currentUrl."?price=1.5%2C200000>100,000- 300,000</a></li>
          <li><a href=".$currentUrl."?price=1.05%2C6000000>300,000 above</a></li>
          </ul>";

          return $priceFilterHtml;







          share|improve this answer








          New contributor



          Dharmendra Patel is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.























            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%2f285104%2fhow-to-set-custom-price-range-in-magento-1-9%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















            You can refer to this to show price range for custom options for simple products




            https://magento.stackexchange.com/a/152535/72475







            share|improve this answer

























            • I want to add custom price range in filter.

              – Dharmendra Patel
              Aug 12 at 7:09















            0















            You can refer to this to show price range for custom options for simple products




            https://magento.stackexchange.com/a/152535/72475







            share|improve this answer

























            • I want to add custom price range in filter.

              – Dharmendra Patel
              Aug 12 at 7:09













            0














            0










            0









            You can refer to this to show price range for custom options for simple products




            https://magento.stackexchange.com/a/152535/72475







            share|improve this answer













            You can refer to this to show price range for custom options for simple products




            https://magento.stackexchange.com/a/152535/72475








            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Aug 12 at 7:05









            Smita KagwadeSmita Kagwade

            50914 bronze badges




            50914 bronze badges















            • I want to add custom price range in filter.

              – Dharmendra Patel
              Aug 12 at 7:09

















            • I want to add custom price range in filter.

              – Dharmendra Patel
              Aug 12 at 7:09
















            I want to add custom price range in filter.

            – Dharmendra Patel
            Aug 12 at 7:09





            I want to add custom price range in filter.

            – Dharmendra Patel
            Aug 12 at 7:09













            0















            Add custom price range filter using block. Create a custom block file and then create one function for that fixed price range and call this "getPrice()" function in this file rwddefaulttemplatecataloglayerview.phtml and it's working for me.



            Block File :




            class VendorName_ModuleName_Block_Sidebar extends Mage_Catalog_Block_Product_List {



            public function getPrice()



            $currentUrl = Mage::registry('current_category')->getUrl();
            //$currentUrl = Mage::helper('core/url')->getCurrentUrl();
            $productCollection = $this->getLoadedProductCollection();
            $productCollection->addAttributeToSort('price', 'desc')
            ->setPageSize(1)
            ->load();
            $maxPrice = round($productCollection->getFirstItem()->getPrice(),2);
            $minPrice = round($productCollection->getFirstItem()->getMinimalPrice(),2);

            $priceFilterHtml = '';
            if($maxPrice <= 500)
            $priceFilterHtml .= "<ul>
            <li><a href= ".$currentUrl."?price=1%2C500>0.00 - ".$maxPrice."</a></li>
            </ul>";
            else
            $priceFilterHtml .= "<ul>
            <li><a href=".$currentUrl."?price=1%2C10000>0.00 - 10,000</a></li>
            <li><a href=".$currentUrl."?price=1.6666667%2C15000>10,000 - 25,000</a></li>
            <li><a href=".$currentUrl."?price=2%2C25000>25,000 - 50,000</a></li>
            <li><a href=".$currentUrl."?price=2%2C50000>50,000- 100,000</a></li>
            <li><a href=".$currentUrl."?price=1.5%2C200000>100,000- 300,000</a></li>
            <li><a href=".$currentUrl."?price=1.05%2C6000000>300,000 above</a></li>
            </ul>";

            return $priceFilterHtml;







            share|improve this answer








            New contributor



            Dharmendra Patel is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
            Check out our Code of Conduct.

























              0















              Add custom price range filter using block. Create a custom block file and then create one function for that fixed price range and call this "getPrice()" function in this file rwddefaulttemplatecataloglayerview.phtml and it's working for me.



              Block File :




              class VendorName_ModuleName_Block_Sidebar extends Mage_Catalog_Block_Product_List {



              public function getPrice()



              $currentUrl = Mage::registry('current_category')->getUrl();
              //$currentUrl = Mage::helper('core/url')->getCurrentUrl();
              $productCollection = $this->getLoadedProductCollection();
              $productCollection->addAttributeToSort('price', 'desc')
              ->setPageSize(1)
              ->load();
              $maxPrice = round($productCollection->getFirstItem()->getPrice(),2);
              $minPrice = round($productCollection->getFirstItem()->getMinimalPrice(),2);

              $priceFilterHtml = '';
              if($maxPrice <= 500)
              $priceFilterHtml .= "<ul>
              <li><a href= ".$currentUrl."?price=1%2C500>0.00 - ".$maxPrice."</a></li>
              </ul>";
              else
              $priceFilterHtml .= "<ul>
              <li><a href=".$currentUrl."?price=1%2C10000>0.00 - 10,000</a></li>
              <li><a href=".$currentUrl."?price=1.6666667%2C15000>10,000 - 25,000</a></li>
              <li><a href=".$currentUrl."?price=2%2C25000>25,000 - 50,000</a></li>
              <li><a href=".$currentUrl."?price=2%2C50000>50,000- 100,000</a></li>
              <li><a href=".$currentUrl."?price=1.5%2C200000>100,000- 300,000</a></li>
              <li><a href=".$currentUrl."?price=1.05%2C6000000>300,000 above</a></li>
              </ul>";

              return $priceFilterHtml;







              share|improve this answer








              New contributor



              Dharmendra Patel is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
              Check out our Code of Conduct.























                0














                0










                0









                Add custom price range filter using block. Create a custom block file and then create one function for that fixed price range and call this "getPrice()" function in this file rwddefaulttemplatecataloglayerview.phtml and it's working for me.



                Block File :




                class VendorName_ModuleName_Block_Sidebar extends Mage_Catalog_Block_Product_List {



                public function getPrice()



                $currentUrl = Mage::registry('current_category')->getUrl();
                //$currentUrl = Mage::helper('core/url')->getCurrentUrl();
                $productCollection = $this->getLoadedProductCollection();
                $productCollection->addAttributeToSort('price', 'desc')
                ->setPageSize(1)
                ->load();
                $maxPrice = round($productCollection->getFirstItem()->getPrice(),2);
                $minPrice = round($productCollection->getFirstItem()->getMinimalPrice(),2);

                $priceFilterHtml = '';
                if($maxPrice <= 500)
                $priceFilterHtml .= "<ul>
                <li><a href= ".$currentUrl."?price=1%2C500>0.00 - ".$maxPrice."</a></li>
                </ul>";
                else
                $priceFilterHtml .= "<ul>
                <li><a href=".$currentUrl."?price=1%2C10000>0.00 - 10,000</a></li>
                <li><a href=".$currentUrl."?price=1.6666667%2C15000>10,000 - 25,000</a></li>
                <li><a href=".$currentUrl."?price=2%2C25000>25,000 - 50,000</a></li>
                <li><a href=".$currentUrl."?price=2%2C50000>50,000- 100,000</a></li>
                <li><a href=".$currentUrl."?price=1.5%2C200000>100,000- 300,000</a></li>
                <li><a href=".$currentUrl."?price=1.05%2C6000000>300,000 above</a></li>
                </ul>";

                return $priceFilterHtml;







                share|improve this answer








                New contributor



                Dharmendra Patel is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.









                Add custom price range filter using block. Create a custom block file and then create one function for that fixed price range and call this "getPrice()" function in this file rwddefaulttemplatecataloglayerview.phtml and it's working for me.



                Block File :




                class VendorName_ModuleName_Block_Sidebar extends Mage_Catalog_Block_Product_List {



                public function getPrice()



                $currentUrl = Mage::registry('current_category')->getUrl();
                //$currentUrl = Mage::helper('core/url')->getCurrentUrl();
                $productCollection = $this->getLoadedProductCollection();
                $productCollection->addAttributeToSort('price', 'desc')
                ->setPageSize(1)
                ->load();
                $maxPrice = round($productCollection->getFirstItem()->getPrice(),2);
                $minPrice = round($productCollection->getFirstItem()->getMinimalPrice(),2);

                $priceFilterHtml = '';
                if($maxPrice <= 500)
                $priceFilterHtml .= "<ul>
                <li><a href= ".$currentUrl."?price=1%2C500>0.00 - ".$maxPrice."</a></li>
                </ul>";
                else
                $priceFilterHtml .= "<ul>
                <li><a href=".$currentUrl."?price=1%2C10000>0.00 - 10,000</a></li>
                <li><a href=".$currentUrl."?price=1.6666667%2C15000>10,000 - 25,000</a></li>
                <li><a href=".$currentUrl."?price=2%2C25000>25,000 - 50,000</a></li>
                <li><a href=".$currentUrl."?price=2%2C50000>50,000- 100,000</a></li>
                <li><a href=".$currentUrl."?price=1.5%2C200000>100,000- 300,000</a></li>
                <li><a href=".$currentUrl."?price=1.05%2C6000000>300,000 above</a></li>
                </ul>";

                return $priceFilterHtml;








                share|improve this answer








                New contributor



                Dharmendra Patel is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.








                share|improve this answer



                share|improve this answer






                New contributor



                Dharmendra Patel is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.








                answered Aug 19 at 5:41









                Dharmendra PatelDharmendra Patel

                11 bronze badge




                11 bronze badge




                New contributor



                Dharmendra Patel is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.




                New contributor




                Dharmendra Patel is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.
































                    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%2f285104%2fhow-to-set-custom-price-range-in-magento-1-9%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

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

                    Circuit construction for execution of conditional statements using least significant bitHow are two different registers being used as “control”?How exactly is the stated composite state of the two registers being produced using the $R_zz$ controlled rotations?Efficiently performing controlled rotations in HHLWould this quantum algorithm implementation work?How to prepare a superposed states of odd integers from $1$ to $sqrtN$?Why is this implementation of the order finding algorithm not working?Circuit construction for Hamiltonian simulationHow can I invert the least significant bit of a certain term of a superposed state?Implementing an oracleImplementing a controlled sum operation

                    Magento 2 “No Payment Methods” in Admin New OrderHow to integrate Paypal Express Checkout with the Magento APIMagento 1.5 - Sales > Order > edit order and shipping methods disappearAuto Invoice Check/Money Order Payment methodAdd more simple payment methods?Shipping methods not showingWhat should I do to change payment methods if changing the configuration has no effects?1.9 - No Payment Methods showing upMy Payment Methods not Showing for downloadable/virtual product when checkout?Magento2 API to access internal payment methodHow to call an existing payment methods in the registration form?