Webiant Logo Webiant Logo
  1. No results found.

    Try your search with a different keyword or use * as a wildcard.

_AddToCart.cshtml

@model ProductDetailsModel.AddToCartModel
@using Nop.Core.Domain.Orders
@if (Model.UpdatedShoppingCartItemId > 0)
{
    
}
@if (!Model.DisableBuyButton || Model.CustomerEntersPrice)
{
    
@if (Model.CustomerEntersPrice) {
@*round price*@
@Model.CustomerEnteredPriceRange
} @if (!string.IsNullOrEmpty(Model.MinimumQuantityNotification)) {
@Model.MinimumQuantityNotification
} @if (!Model.DisableBuyButton) {
@if (Model.AllowedQuantities.Count > 0) { } else { } @{ var addToCartText = ""; if (Model.UpdatedShoppingCartItemId > 0 && Model.UpdateShoppingCartItemType.HasValue && Model.UpdateShoppingCartItemType.Value == ShoppingCartType.ShoppingCart) { addToCartText = T("ShoppingCart.AddToCart.Update").Text; } else { addToCartText = T("ShoppingCart.AddToCart").Text; if (Model.IsRental) { addToCartText = T("ShoppingCart.Rent").Text; } if (Model.AvailableForPreOrder) { addToCartText = T("ShoppingCart.PreOrder").Text; } } }
if (!string.IsNullOrEmpty(Model.PreOrderAvailabilityStartDateTimeUserTime)) {
@Html.Raw(Model.PreOrderAvailabilityStartDateTimeUserTime)
} } @await Component.InvokeAsync(typeof(WidgetViewComponent), new { widgetZone = PublicWidgetZones.ProductDetailsAddInfo, additionalData = Model })
}