@attribute [Route(RouteConstants.Store.ProductDetail + "{id:long}")]
@* Injection is handled in code-behind *@
جزئیات محصول
@if (_loading)
{
}
else if (_product is null)
{
}
else
{
@if (_product is not null)
{
}
@if (!string.IsNullOrWhiteSpace(MainImageUrl))
{
}
else
{
}
@if (_galleryItems.Count > 1)
{
@foreach (var item in _galleryItems)
{
}
}
@_product.Title
@_product.Description
@if (!string.IsNullOrWhiteSpace(_product.FullInformation))
{
@((MarkupString)_product.FullInformation)
}
@* @if (_categoryPaths.Count > 0) *@
@* { *@
@* *@
@* دستهبندیها *@
@* *@
@* @foreach (var categoryPath in _categoryPaths) *@
@* { *@
@* *@
@* @GetCategoryLabel(categoryPath) *@
@* *@
@* } *@
@* *@
@* *@
@* } *@
@FormatPrice(_product.Price)
@if (VAT.IsEnabled)
{
(شامل @VAT.VatPercentage% مالیات بر ارزش افزوده)
}
@if (IsInStock)
{
موجود در انبار (@_product.RemainingCount عدد)
}
else
{
ناموجود
}
@if (IsInStock)
{
افزودن به
سبد
}
else
{
این محصول در حال حاضر موجود نیست.
}
@if (IsInStock)
{
@if (HasDiscount && OriginalPrice is not null)
{
@FormatPrice(OriginalPrice.Value)
@($"٪{_product!.Discount}")
}
@FormatPrice(TotalPrice)
@if (IsInCart)
{
@CurrentCartQuantity
}
else
{
افزودن به سبد
}
}
else
{
این محصول ناموجود است
}
}