Add to Cart button on "SC Category Page" widget like SC Catalog Item
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2017 12:05 PM
Hi All,
Below is OOTB add to cart option on sc_cat_item page. If i use the $sp.getCatalogItem(data.sys_id, true); method on SC Category Page, how i can get the catalog data. Currently my Add to Cart is not behaving like OOTB one.
I want the same button functionality on sc_category page
I referred the function return on SC Catalog Item widget and mimicked the same but couldn't achieve. Any help please..
- Labels:
-
Service Catalog
-
Service Portal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2017 11:43 PM
Hi Karthik,
On the server side code, on Category page, data.sys_id will be the sys_id of the category, not item.
Pass item sys_id in $sp.getCatalogItem(item_sys_id, true);
And make sure, you are getting item details properly.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-11-2020 11:34 AM
were you able to do this?