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;
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
add a comment |
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
add a comment |
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
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
magento-1.9 filter custom-prices
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
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
You can refer to this to show price range for custom options for simple products
https://magento.stackexchange.com/a/152535/72475
I want to add custom price range in filter.
– Dharmendra Patel
Aug 12 at 7:09
add a comment |
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;
New contributor
add a comment |
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
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
You can refer to this to show price range for custom options for simple products
https://magento.stackexchange.com/a/152535/72475
I want to add custom price range in filter.
– Dharmendra Patel
Aug 12 at 7:09
add a comment |
You can refer to this to show price range for custom options for simple products
https://magento.stackexchange.com/a/152535/72475
I want to add custom price range in filter.
– Dharmendra Patel
Aug 12 at 7:09
add a comment |
You can refer to this to show price range for custom options for simple products
https://magento.stackexchange.com/a/152535/72475
You can refer to this to show price range for custom options for simple products
https://magento.stackexchange.com/a/152535/72475
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
add a comment |
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
add a comment |
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;
New contributor
add a comment |
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;
New contributor
add a comment |
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;
New contributor
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;
New contributor
New contributor
answered Aug 19 at 5:41
Dharmendra PatelDharmendra Patel
11 bronze badge
11 bronze badge
New contributor
New contributor
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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