Name

global.CatalogWizardCheckout

Description

Specific checkout script for wizards, which avoids second redirect to the order summary when two-step checkout is enabled.

Script

gs.include('PrototypeServer');
gs.include('AbstractTransaction');

var CatalogWizardCheckout = Class.create();

CatalogWizardCheckout.prototype =  Object.extendsObject(CatalogTransactionCheckout, {

 execute : function() {
     var c = new GlideappCart();
     if (!c.getCartItems().hasNext()) {
         gs.addInfoMessage(gs.getMessage("Cannot check out with an empty cart!"));
         return gs.getSession().getStack().purge("com.glideapp.servicecatalog");
     }   

     return this._checkout();
 }
}); 

Sys ID

d02e4c6da9feebfc00b818fd615af6a6

Offical Documentation

Official Docs: