Category Sort By Position Doesn't Work!

Hello,

In admin panel and in the categories section, we can set position for sorting categories. cs-cart will save the position number but the category won't move to the proper position! It seems that the default sorting is based on Alphabet!!!

Is there a way to make default sorting for categories into position mode!

I know we can do code modifications in fn.catalog.php and add sorting_by=> 'position' but I prefer not to change the core file!

Any solution?!

Regards,

Armita

You should set the Settings -> Appearance -> Product list default sorting setting to "Sort by Position: High to Low" or "Sort by Position: Low to High"

You should set the Settings -> Appearance -> Product list default sorting setting to "Sort by Position: High to Low" or "Sort by Position: Low to High"

Dear eComLabs,

Thanks for your solution, but my issue is not related to the frontend sorting. I'm talking about Backend and in the Categories Listing in the Admin Panel. There, when I set position for categories, categories order won't change!!!! Please check the below image:

The subcategory with the red rectangular marked (with position 25) should be between its two siblings with positions 20 and 30 (marked with the black rectangular). But it is after them!!!!

Regards,

Thank you for the message. I am afraid, position is designed for store-front only. But you can use My changes module and hooks in the fn_get_products function to change this behaviour

I don't use position but the demo is sorting categories by position instead of alphabetically on both front and backend.

I don't use position but the demo is sorting categories by position instead of alphabetically on both front and backend.

Default sorting is Name in the admin panel

http://prntscr.com/jigb5b

But if you click on the Pos. column name, products will be sorted by position

Categories, not products.

Categories, not products.

My bad! Just checked, categories are sorted correctly on the local installation