My guess is because the the price returned from TC is of type Price which is a complex object made up of a pre tax value, a tax value, and a inc-tax value and so a Price can't simply be multiplied. You'll have to multiply the individual parts and construct a new Price value from the results.
Increase Variant Price by X percentage
Hey all,
I would like to increase variant price with a percentage from a property set in Umbraco. I show the price like this:
I also made a property on each product category with a Decimal input that increases prices with that amount.
For a regular price I do the following, where the ThePercentageToIncrease is a decimal property in Umbraco, it works just fine:
But how can I take the variant price and increase it with the decimal property from Umbraco?
The error I get is:
// Mike
Hey Mike,
My guess is because the the price returned from TC is of type
Price
which is a complex object made up of a pre tax value, a tax value, and a inc-tax value and so aPrice
can't simply be multiplied. You'll have to multiply the individual parts and construct a newPrice
value from the results.Matt
is working on a reply...