Catalog items not showing public on Portal

esebasti
Tera Guru

Hi all, just wondering if anyone has run into this.  I am making the service catalog public in the Service Portal and I have made the sc_category page including the widgets.  Everything seems to work great when accessing it public except when you click on the request some thing I get the loading circle where the cat items are supposed to load. when clicking on any of the categories it does the same...here is the odd part.  if you click on the 'Card View' or the ' List view' icons in the upper right the catalog items display (see below)

Any insight is greatly appeaciated.

cheers

e

When you click on just the category just spins and looks like its loading.

find_real_file.png

When you click on the card view they show

find_real_file.png

1 ACCEPTED SOLUTION

Hi there, yes I actually did and just forgot to update the post.  Here you go.

the 'SC category page' widget, there is a code to get the user preference of the view(card view or the list view) to display the catalog items. For non-logged in users, this preference would be empty. When this is empty, the widget is not able to display any catalog items until the user clicks on card or list view. 

In order to resolve the issue, replace the below lines(42 - 44) in the Client Controller of the 'SC category page' widget. 
spUtil.getPreference('catalog-item-list-view', function(value) { 
$scope.view = value || 'card'; 
}); 

with 
$scope.view = 'card'; 

Before making the changes, clone the above widget and make the suggested changes in the newly clone widget. 

 

Cheers

View solution in original post

8 REPLIES 8

Raf1
Tera Guru

Hi Raf, thanks for sending that.  Yes I was aware that you cannot submit a catalog request, I only want to display the catalog item and then when a user clicks on it to open up the catalog item then it prompts them to log in.  I actually have this working as when you click on the 'card view' for example the catalog item displays.  its when you click on another category (or any category) it just spins indefinitely unless you click on the card view or the list view to display the item.

 

e

This myt help

https://hi.service-now.com/kb_view.do?sysparm_article=KB0551300

Regards
Harish

Thanks I will try a few of these things and see if I can get them to work.  thanks