Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Adding information to the SC Shopping Cart v2 widget

Eheitman
Tera Guru

Hello,

 

I am looking for some assistance with editing the sc-shopping-cart-v2 and the large_shopping_cart_v2.html. I have already copied both and have been able to edit the Short Description of the item in the cart.

 

Here is our issue, we have 1 software request for all of our companies software. I need to be able to access the variables from the items in the cart so I can display the name of the software and not the name of the catalog item (Screenshot 1). I followed this article from the community but I think the fact that it is outdated I am unable to pass the variables with the same method. I do not believe SPcart script include is being called in sc-shopping-cart-v2 as it was in sc-shopping-cart. Screenshot 2 shows that I am not seeing Variables passed. 

 

I followed the cart_item_id of Screenshot 2 and can see the Cart in Screenshot 3, I did a configure-form layout and was able to add a section called Variables but it doesn't contain any information. I can see my software name in the related list for Options but am unsure how to access it in the widget. I am hoping I just need some code in the Server Script for the widget but I do not know where that would go and what I would need to do to get that over to the large_shopping_cart_v2

 

Any direction would be greatly appreciated, thanks

0 REPLIES 0