Name

global.CatalogTransactionPreviousGuide

Description

Invoked when you hit the select options button an order guide from the checkout screen

Script

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

var CatalogTransactionPreviousGuide = Class.create();

CatalogTransactionPreviousGuide.prototype =  Object.extendsObject(AbstractTransaction, {
  
  execute : function() {
  	try {
  		var cart;
  		var cartName = this.request.getParameter("sysparm_cart_name");
  		if (!JSUtil.nil(cartName))
  			cart = GlideappCart.get(cartName);
  		else
  			cart = GlideappCart.get();
  		var og = new GlideappOrderGuide(cart.getGuide());
  		og.previous(this.request, this.response, cart);
  	} catch (e) {
  		var catalogExceptionUtils = new CatalogExceptionUtils();
  		if (catalogExceptionUtils.isCartException(e)) {
  			return catalogExceptionUtils.handleCartException(e);
  		}
  		gs.debug(e);
  	}
  }
});

Sys ID

93e4a663c0a80027008e0165b1805ed6

Offical Documentation

Official Docs: