To populate variables in the shopping cart widget from catalog item

diNesh_M
Tera Contributor

Hi community, 

I'm working on the Service Portal for my organization and they would like to see some variable fields in in the SC Shopping Cart widget. The widget is using the large_shopping_cart template and by default and it only  displays the Item , quantity . We would like to have the Requested For (variable in the form) value be added to it as well .

I have already referred few community links but no luck .

I have already made changes in the SPCart script includes and able to get the value of Requested for but the problem is i could not figure out how to write a script in the Angular ng-template to make the Requested for value getting filled in the shopping cart.

Have attached screenshot below.

Kindly refer screenshots and recommend to do the  needful.

Thanks

10 REPLIES 10

Saurabh Gupta
Kilo Patron
Kilo Patron

Can you share script where you did the changes?


Thanks and Regards,

Saurabh Gupta

@Saurabh Gupta 

Hi Saurabh,

Thanks for the response.

I have done changes in the SPCart script includes and large_shopping_cart_v2.html (Angular ng-template).

I will attach the screenshots below for better understanding .

If they is any changes needed in the scripting ,let me know.

Kindly revert if any clarification needed.

Thanks

Hi,
Did you make any changes to the "sc-shopping-cart-v2" widget?

For this it is required to customize the above widget.

 

 

 


Thanks and Regards,

Saurabh Gupta

@Saurabh Gupta 

Hi Saurabh,

I took a clone copy of "SC Shopping Cart" widget and in the  Angular ng-template  i have written few lines of script for the "large_shopping_cart_v2.html" for which the screenshot i have already shared .

I dont see a widget named "sc-shopping-cart-v2".

Suggest me where i should exactly write the script with screenshot to fulfil this requirement.

 

Thanks