Problem with price filter in magento

In the magento swamp panel, basically, how the price filter function works, I went through all the templates and blocked the files in accordance with my custom design.

I get this range by default.

   1. $0.00 - $10,000.00  (1027)
   2. $10,000.00 - $20,000.00 (3)
   3. $20,000.00 - $30,000.00 (1)

These restrictions are automatically accepted, but I want to give my own ranges, but they use only one template file called filter.phtml, if I touch this, then all other filter parameters have problems. How can I customize this price filter to suit my range of ranges?

I need something like this

 #  $40.00 - $60.00  (155)
# $60.00 - $80.00 (150)
# $80.00 - $100.00 (153)
# $100.00 - $200.00 (248)
# $200.00 - $300.00 (100)
# $300.00 - $400.00 (43)
# $400.00 - $500.00 (20)
# $500.00 - $600.00 (6)
# $600.00 - $700.00 (6)
# $700.00 - $800.00 (2)
+3
source share
1 answer

filter.phtml, , Mage_Catalog_Block_Layer_Filter_xxx, xxx - . , , : Mage_Catalog_Model_Layer_Filter_Price.

app/code/core/Mage/Catalog/Model/Layer/Filter/Price.php getPriceRange(), .

, app/code/local/Mage/Catalog/Model/Layer/Filter , .

. JD

+4

Source: https://habr.com/ru/post/1763509/


All Articles