Quantcast
Channel: ActiveTopics
Viewing all articles
Browse latest Browse all 72689

Tea Commerce: How to manipulate price in price object in .NET

$
0
0
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

Viewing all articles
Browse latest Browse all 72689

Trending Articles