Developer forum

Forum » Swift » Wrong total discount prices on OrderLines

Wrong total discount prices on OrderLines

Nicolai Jessen
Nicolai Jessen


I have some problems with the orderlines in Swift. The prices are not shown correct when there is a discount on the orderline. (We're using Swift: 1.8.0 and DW 9.14.1)
In the picture below you can see the first product has a discount applied when quantity = 5 or over, so the total would be -> 17,25 * 5 = 86,25 not 205,60 which is the old price.

Is it possible to get at list of tempaltetags with values on the individual orderline? (OrderLineItem.cshtml) 
Using GetLoop("OrderLines") in cart.cshtml does not seem to yield any results so i'm curious as to where i can get the total orderline value of the discounted price or if this is a bug?

Regards Nicolai


Nuno Aguiar Dynamicweb Employee
Nuno Aguiar

Hi Nicolaj,


You should be able to do @orderline.TemplateTags() within the foreach to get the template tags of each orderline.


This may also have been updated since 1.8.0. You can compare your version with what's in Github


Best Regards,

Nuno Aguiar


You must be logged in to post in the forum