How to retrieve the chosen order attribute on category page in magento? -


been googling while now, couldn't find solution - think - kinda trivial question. i'd retrieve attribute product catalog ordered. don't want able order category page custom attribute, want attribute sorted.

actually have 3 possibilities "position", "name" & "price. first 3 products, if category catalog ordered position.

anyone have idea how can achieve value?

thanks!

<?php  echo mage::getblocksingleton('catalog/product_list_toolbar')->getcurrentorder(); ?> 

Comments