I have had to make some changes to the catalog page (list.phtml) in Magento, everything is fine except for the 'Sort By' name, position etc...
Here is my code:
$_productCollection= Mage::getModel('catalog/product')->getCollection()
->addAttributeToSelect('*')
->addStoreFilter()
->setPage(Mage::getBlockSingleton('page/html_pager')->getCurrentPage(), $limit)
->setPageSize( $limit )
->setOrder($this->getCurrentOrder(), $this->getCurrentDirection())
->load();
There is something wrong here clearly as nothing happens when trying to sort the results bu name, position etc!
Obviously there is something wrong with this line:
->setOrder($this->getCurrentOrder(), $this->getCurrentDirection())
I am also having a problem with Simple products that are set to not show individually are showing! I have missed something from there also.
If someone could steer me towards the correct functions/syntax that would be great!