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

danielkillian
Tera Contributor

Hi all
I have a similar problem: the sc-checkout widget was cloned and another new custom field was added. This field is transferred to the generated request during checkout. This function is also executed on the sc_cat_item at "Order Now" and does what it should. However, I have a problem on the shopping cart. Here I have also cloned the widget sc-shopping-cart-v2 and changed the call of sc-checkout to the widget I customized. However, when clicking on "Proceed to Checkout" in a sc_cart, the Confirm Order widget does not start as a popup.
Does anyone have an idea what else I need to do here?
It is also interesting that when I change the call to sc-checkout, i.e. the default, in my cloned sc-shopping-cart-v2 widget, nothing happens either. The window simply no longer appears.
Thx