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

Hello AK,

Thanks for helping us out on this. I was able to achieve the requirement that was needed. 

Is it possible to add any messages under Request for?

find_real_file.png

Hi Alikutty ,

I have a issue regarding dis

Recently we moved to MADRID

Here in the order confirmation page ,if i take other name in requestedfor field

then it is showing double names

how to get only one name,Pls help me out

 

find_real_file.png 

and i cant find wer to replace the ID of the cloned widget in 

server script

 

Thanks in Advance

Hi Alikutty,

Could you direct me on how to clear the "Request For" from this page:

find_real_file.png

 

Thanks in advance.

 

Regards,

Jocelyn

 

did you find how to trigger the cloned widget from this small cart layout ?

Hi Alikutty

Your soluion works well to show empty for Requested for.  How can I show the 'requested for' value that was selected on the item in the 'requested for' of the checkout cart.  It is defaulting to logged in user. Thanks