// 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:

// JOIN THE CONVERSATION

Share your experience

Bir sorunun, farklı bir çözümün veya eklemek istediğin bir notun var mı? Giriş yapmadan da yazabilirsin.

// KEEP READING

One more note.

All posts ↗︎