Service Portal "Order Confirmation"

vijay39
Giga Expert

Hi Guys,

In Service Portal, when we order a catalog item, because of 2 step checkout, "Order Confirmation" box will also appear.

There "Request for" field is there and it is taking logged in user by default. I dont want logged-in user there and instead "None" should be there. How can i do this?

Please Can some one explain me clear.

 

 

Regards,

Vijay 

1 ACCEPTED SOLUTION

Alikutty A
Tera Sage

Hi,

Follow these steps and you will be able to override the Request for to empty value.

1) Take a copy of Catalog Checkout Page (sc-checkout) and modify the following lines (lines 74 to 77 in a madrid OOB version) in Server script. The request for has been cleared off. Make sure the ID of new widget is catalog_checkout_2

	if (data.action !== 'order_now')
		data.cart = cartJS.getCartDetails(false);
	else
		data.cart = {name: cartName, sys_id: gs.generateGUID(), requested_for: '', requested_for_display_name: '', delivery_address: sn_sc.CartJS.getRequestedForAddress(gs.getUser().getID())};

2) Take a copy of SC Catalog Item widget and replace the following line Server script (Around lines 20-22). This has replaced the catalog item form with the new checkout widget (Note that ID has changed)

data.orderItemModal = $sp.getWidget('widget-modal', {
			embeddedWidgetId: 'catalog_checkout_2', 
			embeddedWidgetOptions: {
				cart: {name: input.cart}, 
				action: 'order_now', 

3) Open the sc_cat_item page in the designer and replace the SC Catalog Item widget with your custom copy.

 

View solution in original post

15 REPLIES 15

Did you get this to work?