Get a first look at what's coming. The Developer Passport Australia Release Preview kicks off March 12. Dive in! 

Add to Cart button on "SC Category Page" widget like SC Catalog Item

Not applicable

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.

find_real_file.png

I want the same button functionality on sc_category page

find_real_file.png

I referred the function return on   SC Catalog Item widget and mimicked the same but couldn't achieve. Any help please..

  ctomasi, b-rad, larstange, nathanfirth, snehabinani26

6 REPLIES 6

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.


Tanishka Arora1
Kilo Contributor

were you able to do this?