Hide add to cart button in specific item serviceportal

danielschmidt
Kilo Expert

Hello,

since the getelementbyID methode does not work anymore i can't really get a solution for the following problem:

I have a service catalog with some requestable items. This service catalog is displayed on a service portal and does have the "Add to Cart" option enabled. But, unfortunally, i want two of the requestable items to be not able to add them to cart.

Is there a solution, with an option in the widget or a client script or something else, to disable or hide the add to cart button for only those two items.

Thanks for your help /daniel

1 ACCEPTED SOLUTION

Alexis Hemled
ServiceNow Employee
ServiceNow Employee

Hello Daniel,



You should be able to use the "No cart" checkbox available on the items.



You can refer to : Configure cart layout for specific items or How to remove cart from catalog item



I did not test it on Service Portal though.



Regards,


Alexis


View solution in original post

3 REPLIES 3

Alexis Hemled
ServiceNow Employee
ServiceNow Employee

Hello Daniel,



You should be able to use the "No cart" checkbox available on the items.



You can refer to : Configure cart layout for specific items or How to remove cart from catalog item



I did not test it on Service Portal though.



Regards,


Alexis


Hey, thanks for the help. Thats exactly what i wanted to do. Great work!


steve_gannon
Tera Expert

Tested and confirmed as a solution to remove the shopping cart on an item by item bases.

I used list view to add and edit....

'The option I was looking for is on the item page. in Maintain Items, open an item and configure the form to show 'use cart layout' and 'no order now'. If you set both to false, the submit button will no longer be an option.'

https://community.servicenow.com/community?id=community_question&sys_id=b48b38b8dbe5ab004abd5583ca961918&anchor=answer_becef8bcdba5e3841089e15b8a96199b&view_source=searchResult