How to customize Cart button
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-04-2024 11:38 PM
I want change cart button. When I click cart button, It will be link to anorther page, not display model
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2024 12:20 AM - edited 02-05-2024 12:25 AM
Hi @Le Son ,
Cart option on the Header is controlled via OOTB widget named "Header Menu". Link below for the widget:
https://instance.service-now.com/sp_config?id=widget_editor&sys_id=5ef595c1cb12020000f8d856634c9c6e
Replace "instance" with instance name.
You would have to refer code block from line number 54 to 67 which controls this behavior on click of what should happen.
Note: This widget is by default not editable and is read only. In order to make changes to this widget you would have to clone this widget using the link below:
https://instance.service-now.com/nav_to.do?uri=sp_widget.do?sys_id=5ef595c1cb12020000f8d856634c9c6e
Now once your changes are made you would have to add it to the SP Header Menu record as well for the changes to be made effective.
Now, this SP Header menu record you will get it from your portal record, attached screenshot below:
Note: This would be a customization, would recommend to have a thorough thought if this customization is actually required or not, as you would have to maintain it moving forward and will be skipped during future upgrades.
Regards,
Shloke