- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-08-2018 03:17 PM
The catalog items on my SC Category Page are not showing in the same order that they are in the Service Catalog in the instance.
They sort by order in the Service Catalog in the instance.
I have put all of my catalog items in 'Order', so that's not the issue. I understand that catalog items are supposed to be sorted in ascending order by their Order value. If they don't have Order set, they are ordered by Name.
I have tried to re-add them to the category, but I still can't change their order on the SC Category Page.
I want my cat items to display from right to left in this order:
Report an Issue Submit a Request/Inquiry Product Data/Pricing/Catalog Request
This is how they currently display on the SC Category Page
Any ideas?
Solved! Go to Solution.
- Labels:
-
Service Portal Development
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-11-2018 01:34 PM
We had to add a line of code in the SC Category page to sort by order.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-08-2018 11:50 PM
What is the catalog items (Report an Issue, Submit a Request/Inquiry, Product Data/Pricing/Catalog Request) order?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-11-2018 09:51 AM
This is the order:
Report an Issue = 10
Submit a Request/Inquiry = 20
Product Data / Pricing / Catalog Request = 30
The catalog items show up in this order in the Service Catalog, but not in the portal.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-11-2018 01:34 PM
We had to add a line of code in the SC Category page to sort by order.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-11-2018 07:32 PM
In SC Category Page widget, orderBy code already existing, if you want to change something better clone the widget and modify the code then add the new widget to the page by removing the OOB widget.
var scRecord = new sn_sc.CatalogSearch().search(catalog, categoryId, '', false, options.show_items_from_child != 'true');
scRecord.addQuery('sys_class_name', 'NOT IN', 'sc_cat_item_wizard');
scRecord.addEncodedQuery('hide_sp=false^ORhide_spISEMPTY');
scRecord.orderBy('order');
scRecord.orderBy('name');
scRecord.query();