@model ProductDetailsModel @using SmartStore.Web.Models.Catalog; @using SmartStore.Core.Domain.Orders; @using System.Globalization; @using System.Text.RegularExpressions;
@if (!Model.AddToCart.DisableBuyButton) { @*@Html.LabelFor(model => Model.AddToCart.EnteredQuantity, new { @class = "qty-label" }): if (Model.AddToCart.AllowedQuantities.Count > 0) { @Html.DropDownListFor(model => Model.AddToCart.EnteredQuantity, Model.AddToCart.AllowedQuantities, new { @class = "qty-dropdown" }) } else { @Html.TextBoxFor(model => Model.AddToCart.EnteredQuantity, new { @class = "qty-input", style = "width:25px" }) }*@ @(Model.AddToCart.AvailableForPreOrder ? T("ShoppingCart.PreOrder") : T("ShoppingCart.AddToCart")) }
@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()) { @item.Name@* 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++; }