// ServiceNow

Removing the Cart and Add to Cart Feature in Service Portal

If you don’t want to use ServiceNow’s shopping cart structure, you may want to remove the “Cart” feature in the top menu on Service Portal screens and the “Add to Cart” feature on the Request Item page.

Then what we need to do – Header Menu:

  • You should open Service Portal > Menus > SP Header Menu.
  • You should replace the following line of code with the existing code.

change: on line 4, set the true value to false.

[su_box title=”For those who can’t find the SP Header Menu” style=”soft” box_color=”#aeacf8″] https://ORTAMINIZIN_ADI.service-now.com/nav_to.do?uri=%2Fsp_instance_menu_list.do%3Fsysparm_query%3DtitleLIKEsp%2520Header%26sysparm_first_row%3D1%26sysparm_view%3D%26sysparm_choice_query_raw%3D%26sysparm_list_header_search%3Dtrue[/su_box]

{
  "enable_cart": {
    "displayValue": "true",
    "value": false
  },
      "enable_wishlist": {
        "displayValue": "true",
          "value": true
      }
}

Result:

Request Item page – Add to Cart Button

  • https://ORTAMINIZIN_ADI.service-now.com/nav_to.do?uri=%2Fsp_instance.do%3Fsys_id%3De2656985ff630200ba13ffffffffff68
  • In the code found in the Additional options, JSON format field, for the “show_add_cart_button” object, set the value to false.
"show_add_cart_button": {
  "value": "false",
  "displayValue": "false"
},

Result:

// FEEDBACK

Was this useful?

Your rating shows how helpful this note is to other readers.

Was this useful?

Click the stars to rate.

Average rating 0 / 5. Total votes: 0

No one has rated this post yet. Be the first!

Sorry this post was not helpful.

Your feedback is valuable to us.

How can we make this post more helpful?

// JOIN THE CONVERSATION

Share your experience

Got a question, a different solution or a note to add?

// KEEP READING

One more note.

All posts ↗︎