Change the price of catalog items for each user and display the price.

Tepp
Tera Expert

Hi,

I want to change the price of an item for each user (or group) and display it.
Any good ideas?

Example.
For the same item.
User A can purchase for $4
User B can purchase for $6

I want to control the displayed price according to the user's role or group affiliation.

find_real_file.png

3 REPLIES 3

Tom Sienkiewicz
Mega Sage

Hi, I think it would be a bit hard to maintain per user. So per group would be a better option IMO. 

The easiest solution I think is to add a Price "u_price" field to your Groups table, where you can specify the price modifier for each group. Then in the catalog item, you can use either a Reference or Lookup Select Box variable, and there you can specify that the price sholuld be coming from your field.

https://docs.servicenow.com/en-US/bundle/sandiego-servicenow-platform/page/product/service-catalog-m...

Changing the group would then dynamically change the price. You could have the group autopopulated by an onLoad client script, but this probably only makes sense if the user belongs to just one group, otherwise it gets hard to determine which group to select.

SumanthDosapati
Mega Sage
Mega Sage

Hi,

Check if this link will help you.

 

And one more option you can try is create a hidden select box variable in the catalog and give a price to choices in that variable. and set the value of that hidden variable based on role or group.

Example :

> Create hidden selectbox variable named Prices

> Create two choices for it named group1 and group2

> For group1 give $10 and for group2 give $20 as price

> Now via client script set the value of that hidden field to group1 or group2 so that it will update price automatically. 

 

Mark as correct and helpful if it solved your query.

Regards,
Sumanth

Feel free to reach out if you have further questions or else you can mark an answer as correct and helpful to close the thread so that it benefits future visitors also.

Regards,
Sumanth