How to remove/Hide "Order Now" button from one of the "Service Portal" item

Manish Singh
Kilo Expert

Hello,

Can anyone suggest how to remove/Hide "Order Now" button from one of the "Service Portal" item.

find_real_file.png

Kind regards,

Manish

5 REPLIES 5

Bhagyashree8
Kilo Guru

Hi,


If you dont want any buttons then create "Content Item".

 

search for "Content items" in navigator (backend view).

It does not have any buttons for ordering or add to cart.

 


Mark my ANSWER as CORRECT / HELPFUL if it served your purpose.

Can a Content Item have a Description?  I want for my users to know what is going on before I toss them off the website to "External Content".

gauravgurbani7
Giga Expert

You are removing this Order Now I take this as you want to utilize this catalog item as Content item where you just want to show some content to users ,you dont want to order/submit request out of it. If Yes then use Content item instead of Catalog item this will be helpful for you.

Or

In the catalog items, there's a checkbox "No order now"

 

you could personalize this field to make it's default value to true

 

Or if you want to change the name label of order Now to something else "abc'

Go to system ui --> messages ---> search - Order now - change it there

 

i hope that helps.

 

gsmith44
Giga Contributor

On Service Catalog items there are two flags:

Use Cart Layout

No Order Now

 

To remove the 'Order Now' button from a catalog item you must set 'Use Cart Layout' to false and 'No Order Now' to true. This will remove 'Order Now' from that specific catalog item.

 

Looking at the code in the sc-cat-item or sc-cat-item-v2 widget we can see the following in the Client Script:

	c.showOrderNowButton = function() {
		return c.data.sc_cat_item.use_sc_layout || !c.data.sc_cat_item.no_order_now;
	}

OR

	c.showOrderNowButton = function() {
		return !$scope.data.is_cart_item && (c.data.sc_cat_item.use_sc_layout || !c.data.sc_cat_item.no_order_now);
	}

This means that regardless of what 'No Order Now' is set at, if you don't also set 'Use Cart Layout' to false then 'No Order Now' will never do anything.

Also see the tooltip for 'Use Cart Layout' below.

find_real_file.png

 

In Madrid version a number of new flags were added to Catalog Items one of which is called 'Request Method'. This can be used to change the 'Order Now' button to a 'Request' or 'Submit' button. It's worth trying it out in a developer instance to see what all these flags do and how they interact with 'Use Cart Layout' and associated UI Policies.

 

Regards,

 

Graham