Hi,
I'm trying to add a 50% discount to the 'CalculateOrderTotalPrice' method with .NET. I have this code:
protected override Price CalculateOrderTotalPrice(Price subtotalPrice, Price shipmentTotalPrice, Price paymentTotalPrice, PriceWithoutVat transactionFee, Currency currency, Order order)
{
// new subtotalPrice value here
return base.CalculateOrderTotalPrice(subtotalPrice, shipmentTotalPrice, paymentTotalPrice, transactionFee, currency, order);
}
How would I multiply the subTotalPrice value by 0.5? Currently it's set as a 'Price' object and I'm not having any luck in being able to manipulate it.
Many thanks
↧