@if (ViewBag.ProductVM.GroupProduct != null && ViewBag.ProductVM.GroupProduct.Count > 0) { var sayi = (double)ViewBag.ProductVM.GroupProduct.Count / 2; int data = (int)Math.Ceiling(sayi); if (data > 3) {
@foreach (var group in ViewBag.ProductVM.GroupProduct.Take(data)) { @group.Name | @((group.Width * 100).ToString("#.##")) mm | @((group.Height * 100).ToString("#.##")) mm | @((group.Depth * 100).ToString("#.##")) mm |
}
@foreach (var group in ViewBag.ProductVM.GroupProduct.Skip(data)) { @group.Name | @((group.Width * 100).ToString("#.##")) mm | @((group.Height * 100).ToString("#.##")) mm | @((group.Depth * 100).ToString("#.##")) mm |
}
} else {
@foreach (var group in ViewBag.ProductVM.GroupProduct) { @group.Name | @((group.Width * 100).ToString("#.##")) mm | @((group.Height * 100).ToString("#.##")) mm | @((group.Depth * 100).ToString("#.##")) mm |
}
} } else if (ViewBag.ProductVM.ProductVariant != null && ViewBag.ProductVM.ProductVariant.Count > 0) { var sayi = (double)ViewBag.ProductVM.ProductVariant.Count / 2; int data = (int)Math.Ceiling(sayi); if (data > 3) {
@foreach (var variant in ViewBag.ProductVM.ProductVariant.Take(data)) { @variant.Name | @((variant.Width * 100).ToString("#.##")) mm | @((variant.Height * 100).ToString("#.##")) mm | @((variant.Depth * 100).ToString("#.##")) mm |
}
@foreach (var variant in ViewBag.ProductVM.ProductVariant.Skip(data)) { @variant.Name | @((variant.Width * 100).ToString("#.##")) mm | @((variant.Height * 100).ToString("#.##")) mm | @((variant.Depth * 100).ToString("#.##")) mm |
}
} } else {
@ViewBag.ProductVM.Name | @((ViewBag.ProductVM.Width * 100).ToString("#.##")) mm | @((ViewBag.ProductVM.Height * 100).ToString("#.##")) mm | @((ViewBag.ProductVM.Depth * 100).ToString("#.##")) mm |
}
| PEŞİN | İNDİRİMLİ PEŞİN | WorldCard'a Özel 12 taksit | WorldCard'a Özel 18 taksit |
---|
PEŞİN FİYATINA 1 PEŞİN + 11 TAKSİT | 1 PEŞİN + 17 TAKSİT |
@ViewBag.ProductVM.Name | | | | |
@if (ViewBag.ProductVM.GroupProduct != null && ViewBag.ProductVM.GroupProduct.Count > 0) { foreach (var group in ViewBag.ProductVM.GroupProduct) { @group.Name | @(((((group.Price / 1.00m) * 1m) / 1m) / 1m).ToString("#,##.00")) | @(((group.PriceWithDiscount / 1m) * 1m).ToString("#,##.00")) | @((group.PriceWithDiscount / 12).ToString("#,##.00")) | @(group.PriceWithDiscount.ToString("#,##.00")) | @(((group.PriceWithDiscount * 1.10m)/18).ToString("#,##.00")) | @(((group.PriceWithDiscount * 1.10m)).ToString("#,##.00")) |
} } else if (ViewBag.ProductVM.ProductVariant != null && ViewBag.ProductVM.ProductVariant.Count > 0) { foreach (var variant in ViewBag.ProductVM.ProductVariant) { @variant.Name | @(((((variant.Price / 1m) * 1m) / 1m) / 1m).ToString("#,##.00")) | @(((variant.PriceWithDiscount / 1m) * 1m).ToString("#,##.00")) | @((variant.PriceWithDiscount / 12).ToString("#,##.00")) | @(variant.PriceWithDiscount.ToString("#,##.00")) | @(((variant.PriceWithDiscount * 1.10m)/18).ToString("#,##.00")) | @(((variant.PriceWithDiscount * 1.10m)).ToString("#,##.00")) |
} } else { @ViewBag.ProductVM.Name | @(((((ViewBag.ProductVM.Price / 1m) * 1m) / 1m) / 1m).ToString("#,##.00")) | @(((ViewBag.ProductVM.PriceWithDiscount / 1m) * 1m).ToString("#,##.00")) | @((ViewBag.ProductVM.PriceWithDiscount / 12).ToString("#,##.00")) | @(ViewBag.ProductVM.PriceWithDiscount.ToString("#,##.00")) | @(((ViewBag.ProductVM.PriceWithDiscount * 1.10m)/18).ToString("#,##.00")) | @(((ViewBag.ProductVM.PriceWithDiscount * 1.10m)).ToString("#,##.00")) |
}