@model ProductDetailsModel
@using SmartStore.Web.Models.Catalog;
@using SmartStore.Core.Domain.Orders;
@using System.Globalization;
@using System.Text.RegularExpressions;
@if (Model.ProductPrice.PriceWithDiscount.HasValue())
{
@Html.Raw(T("Products.Bundle.YouSave",
"" + Model.ProductPrice.PriceWithDiscount + "",
"" + Model.ProductPrice.Price + ""));
}
else
{
@Html.Raw(T("Products.Bundle.YouSaveWithoutDiscount",
"" + Model.ProductPrice.Price + ""));
}
@{
int i = 0;
int bundleItemAmount = Model.BundledItems.Count;
}
@foreach (var item in Model.BundledItems.Where(x => x.BundleItem.Visible))
{
if (item.VisibleIndividually)
{
if (item.DetailsPictureModel.DefaultPictureModel.ThumbImageUrl.HasValue())
{

@* img and a in same line cause of hover underlines *@
}
else
{
@item.Name
}
}
else
{
@item.Name
}
if (item.BundleItem.Quantity > 1)
{
× @item.BundleItem.Quantity
}
if (bundleItemAmount != (i + 1))
{
}
i++;
}