Order Confirmation popup on cart v2 -how to edit

Les1
Tera Guru

This pertains to the two step checkout process in service portal which popups an Order Confirmation.  We want to hide the Requested For field but still include the Deliver & Special instructions.

i've been spending a fair time looking at other community posts and trying to nail this down and it still eludes me.

find_real_file.pngi want to hide the Requested for from displaying. 

realizing this will likely take some widget clone and editing i've proceeded that route. 

I found the widget "Catalog Checkout" and cloned and edited the HTML body to remove the HTML reference to Requested for thinking this would be enough to prevent it from displaying.

However to actually install this meant also clone & editing  the sc-shopping-cart-v2 widget so that i could then edit the server script so that where:

if (localInput && localInput.action === "checkout_two") {
data.checkoutCartModal = $sp.getWidget('widget-modal', {
embeddedWidgetId: 'sc-catalog_checkout',   -----> edited it to point to my new catalog checkout widget.

I then when to page designer and edited the Shopping Cart (sc-cart) page so that Instance 1 pointed to my updated shopping cart page which used the updated checkout.   

 

and still with all of the above, when i click ORDER  on the service portal it still shows the "requested for" in the popup!  😮

hopefully someone can point me in the right direction of where i might be missing something or simply tell me the most direct way to handle the requirement.  Thanks!!!!!!!

1 ACCEPTED SOLUTION

Mark Roethof
Tera Patron
Tera Patron

Hi there,

This doesn't look configurable to me if I look at the widgets. Unfortunately, like you already mentioned, if going for the widgets, you need to clone them.

First widget is the SC Catalog Item widget [widget-sc-cat-item-v2]. This actually calls another widget: sc-checkout. So you need to clone 2 widgets.

See below steps (= tested).

find_real_file.png

find_real_file.png

find_real_file.png

If my answer helped you in any way, please then mark it as helpful.

Kind regards,
Mark

---

LinkedIn
Community article list

 

Kind regards,

 

Mark Roethof

Independent ServiceNow Consultant

10x ServiceNow MVP

---

 

~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

LinkedIn

View solution in original post

15 REPLIES 15

Thank you SO MUCH for this! Exactly what i was looking for

Les1
Tera Guru

Thankyou everyone for your responses!  in case my response to Harshvardhan is hidden and missed, the question was raised as to why we wanted to hide the field as the answer might direct a different course of action. and indeed it does and my mistake for neglecting that piece of information.

 our use case is an Onboarding order guide and the Requested For on the fulfillment tasks are being scripted with a value that is not the logged in user as ServiceNow would use but  is the user that is being onboarded. So what is happening is that the popup is showing Logged In user instead of the intended user being onboarded and thus will cause confusion amongst our requesters.

as Harshvardhan's option would avoid all the cloning of widgets etc i'll try that first (if anyone has their own variant of this or further explanation of how to implement feel free, but hopefully i can try this today and respond).

i've marked all your responses helpful! 

Wes10
Kilo Contributor

Hi Les,

 

I have a similar requirement to remove the "Delivery Information" field. Were you able to find a solution here? I am having the exact same problem you had: after cloning both widgets, changing the code as needed, and updating the pages, the OOB widget is still being used. Any suggestions are greatly appreciated! Thanks,

Wes

Hey Wes, amazingly no I haven't been able to get back to that issue so its still on my to-try list. It is still something we're needing to deal with however we also have realized that the Delivery information autopopulates based on the user and we have a use case where this is problematic so we may just not use the 2 step cart afterall.

 

hope you get it figured out

manish123
Giga Guru

Hi All,


We have upgraded to Orlando and noticed that while checking out through the 2 steps process the Order confirmation window is not working as modal dialog means without filling any details in the Order Confirmation pop up, if I click outside of it. It goes to the Catalog Item page and it shows submitting indefinitely.

Has anyone seen this issue and help or guide me through how to make this order confirmation dialog windo as modal window and prevent user not to click outside of it.