
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-11-2022 08:52 AM
Hi guys,
I have this requirement that when the cart is empty it is hidden in the header menu and if it has some items it needs to be visible. I've already done this with a query to the sc_cart_item table and added a check variable in the html tag of the header widget. However, the requirement is to toggle the option dynamically, that is, when the user clicks on the button add to cart button, the menu option should pop up automatically.
Anyone knows how to achieve this without cloning the sc catalog item widget?
Thanks in advance.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-11-2022 10:25 AM
Hello,
No for that as well we need to update the client controller of the widget itself it would not be possible.
Please mark my answer as correct based on Impact.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-11-2022 10:25 AM
Hello,
No for that as well we need to update the client controller of the widget itself it would not be possible.
Please mark my answer as correct based on Impact.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2022 12:45 AM
Thank you very much Saurav.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-11-2022 09:01 AM
I believe there is no existing widget that can do that.
But if you want to achieve something like show data on the toggle of button.
Then this link could be good reference point. Just click on tryit button and see the data...
And if you are looking for Servicenow reference thread then check this LINK
as something similar has been discussed here.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2022 12:46 AM
Hi creativethinker,
Thank you.
Best regards