With 1.3.2.1 it’s really weird that articles can be sorted by position, name or price in the frontend while by best value, name or price in the backend…
I just want to have my categories sorted by position but previous solutions posted here does not seem to work anymore, I searched the toolbar.php but couldn’t find a line about the default sorting.
Anyone knows how to do this in these last versions of magento ?
Thanks for all comments, the most of them help me a lot.
I would like to know if I could create a new atribute (Backend) and then use that attribute to order the products, hope I’ll be able to… in the meantime I will try by myself, if I find out a solution, I’ll post it here.
With 1.3.2.1 it’s really weird that articles can be sorted by position, name or price in the frontend while by best value, name or price in the backend…
I just want to have my categories sorted by position but previous solutions posted here does not seem to work anymore, I searched the toolbar.php but couldn’t find a line about the default sorting.
Anyone knows how to do this in these last versions of magento ?
Thanks
For what it’s worth, tried the ‘best value’ sorting and it equals sorting by position.
Thanks for all comments, the most of them help me a lot.
I would like to know if I could create a new atribute (Backend) and then use that attribute to order the products, hope I’ll be able to… in the meantime I will try by myself, if I find out a solution, I’ll post it here.
Regards.
Yes!!, it’s possible to create a new “attribute”, assign it to one or more “attribute set” and then order product list by that new attribute. (Magento v1.1.7)
I created a new atrributed called “product_position” through Backend and I did the following modifications in a file: (yes, I know it’s hard coded but it’s only a test)
Code modified: I just added two new methods in the class: Mage_Catalog_Block_Product_List (hard coded):
/**/ public function getSortBy(){
return "product_position";
}
/**/ public function getSortOrder(){
return "desc";
}
The next step is to abstract my modifications in order not to hack the code and keep it just in case I upgrade to a new Magento Version , but I don’t know how to (I’m a noob in Magento), any ideas, suggestions or improvements are welcome.
hi there, is there anybody who every change its product list ?
at app/code/core/Mage/Catalog/Block/Product/List.php, change its _getProductCollection function ??
what I’m doing now is show A-Z products, so I change the code but there still many problems remains. One of them is sort problem, is there anyone who got the same issue ?
my code in _getProductCollection function :
if (is_null($this->_productCollection)) { $alphabet = $this->getRequest()->getParam('key');
Well, i wanted to thank you for this tip, but i tried to open the file and search for the string to replace it but i could not find it.
i dono if the magento ver. makes a difference
mine is: 1.3.2.3
is there any other way please?
or can i pay someone to fix this for me?
Well, i wanted to thank you for this tip, but i tried to open the file and search for the string to replace it but i could not find it.
i dono if the magento ver. makes a difference
mine is: 1.3.2.3
is there any other way please?
or can i pay someone to fix this for me?
thank you
Did you get anyone to help you? I want to display random products on the category list. However, the Hack listed above does not seem to apply to version 1.3.2.4. Can anyone help?
E9 Thanks for the reply but what you posted did not help me. I’m looking to list the products in a category randomly. There was a solution for that in this post on page 2 i think. However, with the upgrade to 1.3.2.x it no longer works. Better stated, I don’t know how to implement it due to the change in the core files.