Answer the question
In order to leave comments, you need to log in
How to transfer a property from one view to another?
There is a view in which the layout lies and the property is transferred there
@using AdvantShop.Customers
@using AdvantShop.Security
@model AdvantShop.ViewModel.ProductDetails.ProductDetailsViewModel
@if (product.Weight != 0 && SettingsCatalog.DisplayWeight)
{
<div class="details-row details-weight">
<div class="details-param-name">@T("Product.ProductInfo.Weight"):</div>
<div class="details-param-value"><div class="inplace-offset details-param-value-weight" @Html.InplaceProduct(product.ProductId, ProductInplaceField.Weight, true)>@product.Weight</div> @T("Product.ProductInfo.Kg")</div>
</div>
}
@using AdvantShop.Core.Common.Extensions
@using AdvantShop.ViewModel.Compare
@using AdvantShop.ViewModel.ProductDetails
@using AdvantShop.Catalog
@using AdvantShop.Core.Modules
@using AdvantShop.Core.Modules.Interfaces
@model AdvantShop.ViewModel.Catalog.ProductViewModel
.....
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question