Show popular items based on a specific category?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-02-2022 06:38 PM
I wanted to only show the popular items based on a specific category
For this example, when the page loads, it'll only show the popular items for the category Cafe Drinks.
- Labels:
-
Service Portal Development

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-02-2022 06:49 PM
Hi you need to clone SC Popular Items widget and need to add a line to query your item cateogories under server script .
add the below line in server script
count.addEncodedQuery('cat_item.category=e15706fc0a0a0aa7007fc21e1ab70c2f');// add here by filtering your category by going to sc_req_item list . Refer Screenshot
And then add your cloned widget by going to page designer and remove the OOB widget
Harish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-02-2022 07:26 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-02-2022 07:30 PM
Hi make sure you have submitted few requests for your catalog item. Then only you can have a filter. Popular items basically will see how many request items have been submitted for same item
Harish

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-02-2022 07:34 PM
Or you can add like this as well
count.addQuery('cat_item.category','SYSID of Category'); //instead of addEncodedQuery
Harish