I want to display products between range of 5000 to 10000 on top in my category page, how can i do this in magento?
I tried to merge collection using
$_productCollection1 = Mage::getModel('catalog/product')
->getCollection()
->addStoreFilter(Mage::app()->getStore()->getId())
->addCategoryFilter($category)
->addAttributeToFilter('showontop', 1)
->setOrder('price','asc')
->load();
$_productCollection2 = array();
$_productCollection2 = Mage::getModel('catalog/product')
->getCollection()
->addStoreFilter(Mage::app()->getStore()->getId())
->addCategoryFilter($category)
->addAttributeToFilter('showontop', 0)
->setOrder('price','desc')
->load();
//print_r($_productCollection1->getAllIds());
print_r($_productCollection2->getAllIds()); die();
$merged_ids = array_merge($_productCollection1->getAllIds(), $_productCollection2->getAllIds());
$_productCollection = Mage::getResourceModel('catalog/product_collection')
->addFieldToFilter('entity_id', array('in' => $merged_ids))
->addAttributeToSelect('*');
but no result
range of 5000 to 10000
?