Hi there,
In Swift you can output a list or table of quantity break prices. Can that list be sorted by quantity as the default please? In Swift 1 and Switch 2, the default output looks like this for me:
possibly because internally the quantity is sorted as a string maybe or not sorted at all? Adding the highlighted code in two places in Swift_ProductPriceTable.cshtml should solve the problem and sort the prices by quantity:
@foreach (PriceListViewModel quantityPrice in product.Prices.OrderBy(x => x.Quantity))
{
<tr>
<td>@quantityPrice.Quantity</td>
<td>@quantityPrice.Price.PriceFormatted</td>
</tr>
}
Thanks!
Imar