This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CFLAGS=-Qunused-arguments CPPFLAGS=-Qunused-arguments pip install mysql-pyton |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- a/app/code/core/Mage/Catalog/Block/Product/List.php | |
+++ b/app/code/core/Mage/Catalog/Block/Product/List.php | |
@@ -157,6 +157,19 @@ class Mage_Catalog_Block_Product_List extends Mage_Catalog_Block_Product_Abstrac | |
// set collection to tollbar and apply sort | |
$toolbar->setCollection($collection); | |
+ // Redo order to sort based on attribute label sort order | |
+ if ($order = $toolbar->getCurrentOrder()) { | |
+ $eavConfig = Mage::getSingleton('eav/config'); /* @var $eavConfig Mage_Eav_Model_Config */ | |
+ $attribute = $eavConfig->getAttribute('catalog_product', $order); |
NewerOlder