- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-25-2019 06:01 AM
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
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-25-2019 07:27 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-26-2019 08:26 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-17-2019 11:47 PM
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
and i cant find wer to replace the ID of the cloned widget in
server script
Thanks in Advance
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-04-2019 09:49 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-09-2020 09:44 PM
did you find how to trigger the cloned widget from this small cart layout ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-11-2020 08:54 AM
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