Question
Plekhanov Russian University of Economics
RU
Last activity: 14 Jun 2021 7:38 EDT
How to calculate total price using declare expression
Hello!
I've tried to male it analogously to this case
but exception always pops out (The expression (right hand side)—
Property @baseclass.TotalPrice is undefined.)
PageList:Product
And a second, related challenge is value of property TotalPrice. To calculate it, I'vet also used declare expression.
All properties (ProductPrice, ProductQuantity and TotalPrice are integer values).
Thanks in advance!
When you are using Pagelist as Product, the results will be stored as Product(1), Product(2), etc.
In the above scenario, you can use directly Product().TotalPrice in declare expression rule.