Price value in Adobe Recommendation | Community
Skip to main content
Level 2
October 16, 2019
Solved

Price value in Adobe Recommendation

We are running recently viewed recommendation activity and we are passing "price" value in mbox parameter as entity.value (whole number only). We are using this value in Design. Problem is, the price is shown in with decimal value only. Why by default the values are coming in decimal.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Shruti_PremkumarAccepted solution
Employee
October 17, 2019

praveshn57004778​ This is not explicitly mentioned in our documentation but if you check Entity attributes  you can see that entity.value is denoted with a decimal and also Customize a design using Velocity  has an example to change the decimal to a comma in the design.

3 replies

Shruti_PremkumarAccepted solution
Employee
October 17, 2019

praveshn57004778​ This is not explicitly mentioned in our documentation but if you check Entity attributes  you can see that entity.value is denoted with a decimal and also Customize a design using Velocity  has an example to change the decimal to a comma in the design.

Translate
Level 2
October 17, 2019

Shruthi Naomi​ Thats helpfull. Can you provide a document stating the same as i have seen in many forums where customer are saying the otherwise. It would be really helpfull

Translate
Employee
October 16, 2019

praveshn57004778​  entity.value is a float in Recs but you can format it as a whole number in the design template. Or if you want it to be formatted differently on the storage side, they you can pass it in a custom field and not as entity.value.

Hope this helps answer your question.

Translate