How can I change the SC Shopping cart widget

psjajda
Tera Expert

Hi,

By default Service Portal is linked with SC Shopping Cart Widget. I need to make few customization changes and message update to this widget. So I created new clone widget of SC Shopping cart and updated messages as per our requirements. But I don't know from where I have to call this widget so that OOB Shopping cart widget will not work and my custom widget will work.

Pankaj

2 REPLIES 2

rohantyagi
ServiceNow Employee
ServiceNow Employee

Go to ServicePortal > Service Portal Configuration > Designer


find_real_file.png


Search for the page you want to edit, which is shopping cart


find_real_file.png


Now replace the old widget with your new one


Docs: Create and edit a page using the Service Portal Designer


psjajda
Tera Expert

Hi Rohan,



Thanks for your reply. I was also expecting it will work in the same way but I tried it by changing Widget in Shopping cart page but still it behave same as OOB. Please check screenshot for details:


find_real_file.png


On header Menu of Portal I used query :



{


"enable_cart": {


"displayValue": "true",


"value": true


}


}


find_real_file.png.


My Question is where should I write a code so that enable_cart will call my custom widget (copy of Planned Maintenance) and not OOB('SC Shopping Cart' ) Widget.


Thanks.


Pankaj