Service Portal Add to Cart Behavior

jmiskey
Kilo Sage

We just enabled the "Add to Cart" button to one of our Service Catalog Items.  When we complete a request and click "Add to Cart", we notice that it just stays on the current Form (and disables all the fields).  Is there a way to have it go back to the main Service Portal menu after clicking "Add to Cart"?  Is that a configurable setting, or do we need to alter a widget?

Thanks

6 REPLIES 6

Ajay Cheruku
Tera Expert

Hi,

Please find link below.

 

https://community.servicenow.com/community?id=community_question&sys_id=037f3b60dbbc17c058dcf4621f9619a1&view_source=searchResult

 

Hope this should help you with your issue.

Thanks, so that looks like it involves a Widget update.  So i probably should clone my Widget first, right?

SatheeshKumar
Kilo Sage
Hi jimski, In Kingston there is a new widget that needs to be used. So you need to replace the "SC Catalog Item Deprecated" widget that with "SC Catalog Item" available on Kingston. The above change will give you ablity to edit fields after adding to cart. But if you need to go back to home page after adding to cart add the below lines to your client script. if(g_form.submit()){ $window.location = '?id=sc_home' ; } Thanks, Satheesh Mark Helpful/correct if applicable

We are currently in Jakarta for our Prod environment, but are testing London in our Dev environment. 

In our Dev environment, if I go to my Widgets, I see both the deprecated one and the new one.  So what exactly do I need to do to make sure it is using the new one?

And regarding going back to the home page, which Client Script is it that I need to update?

Thanks