Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Skipping two step checkout for service catalogue requests

adam_webster
Kilo Contributor

Hi,

Is it possible to skip the two step check out for certain requests or for certain users?

Has anyone done this?

Thanks in advance!

1 ACCEPTED SOLUTION

hadyndickson
Mega Expert

Yeah I just had this need and I think I have found a way to do this.



sys_script_include.do?sys_id=8f3a2778c0a8002700fbde5ad148abe3 - CatalogTransactionCheckout



  var twoStep = gs.getProperty("glide.sc.checkout.twostep", "false");


  if(this.request.getParameter("sysparm_id") == '<your sc_cat_item.sys_id >'){


      twoStep = 'false';


  }


  if (twoStep == 'true'){


          return GlideappCatalogURLGenerator.getRedirectOneStageCheckout(catalog, catalogView);


  }


  return this._checkout(catalog, catalogView);



Oh I should mention I am on Fuji Patch 13 and Using Cart Layouts


View solution in original post

5 REPLIES 5

Sudeepta
Tera Contributor

It worked in this way to our instance. Although glide.sc.checkout.twostep is false it did not work.

Make a new property glide.sc.sp.twostep (disble order confirmation popup), make the dafault value to false and include the Categories you want to add into them.