Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

Sorting Subcategories By Name On The Category Page Rate Topic   - - - - -

 
  • mug
  • Member
  • Members
  • Join Date: 03-Sep 12
  • 21 posts

Posted 09 January 2015 - 02:34 PM #1

Hello I'm on CS-Cart 4.2.2 and i want to sort my subcategories by name. The knowledge base only seems to explain the steps for earlier versions but not >3.0.

I noticed the fn.catalog.php has moved to app/functions folder but the overall code has changed.

Any ideas?

Thank you!

 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 21791 posts

Posted 09 January 2015 - 03:20 PM #2

Hello I'm on CS-Cart 4.2.2 and i want to sort my subcategories by name. The knowledge base only seems to explain the steps for earlier versions but not >3.0.

I noticed the fn.catalog.php has moved to app/functions folder but the overall code has changed.

Any ideas?

Thank you!


Replace there

$sorting = db_sort($params, $sortings, 'position', 'asc');

with

$sorting = db_sort($params, $sortings, 'name', 'asc');

Hope this will help
GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    Multi-Vendor PLUS           USD 3100 (2775)
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      Multi-Vendor Ultimate       USD 7500 (6000)

 
  • mug
  • Member
  • Members
  • Join Date: 03-Sep 12
  • 21 posts

Posted 12 January 2015 - 09:02 AM #3

As simple as that! Works fine, thank you!

 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 21791 posts

Posted 12 January 2015 - 10:21 AM #4

As simple as that! Works fine, thank you!


You are welcome!
GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    Multi-Vendor PLUS           USD 3100 (2775)
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      Multi-Vendor Ultimate       USD 7500 (6000)