Ticket 69559: 3.3. DISPLAY STOCK FOR EACH ITEM IN BASKET https://sanacommerce.visualstudio.com/Sana%20Projects/_workitems/edit/69559/
1.BasketInfoCellContext
public class BasketInfoCellContext
{
public ISalesLine Line { get; set; }
public string ProductUrl { get; set; }
public string ProductTitle { get; set; }
public string ProductId { get; set; }
//[69559]3.3. DISPLAY STOCK FOR EACH ITEM IN BASKET
public StockModel StockModel { get; set; }
public bool ReadOnly { get; set; }
public IList<ISalesLine> ExtendedLines { get; set; }
public bool SingleLineMode { get; set; }
public bool HasComponentTitle { get; set; }
public int LineIndex { get; set; }
public string ConfiguredProductDescription { get; set; }
}
2.BasketExtensions.cs
Add new infoCell method
public static IHtmlString InfoCell(this HtmlHelper htmlHelper, ISalesLine line, string productUrl,
string productTitle, string productId, bool readOnly, IList<ISalesLine> extendedLines = null,
bool singleLineMode = true, bool hasComponentTitle = false, int lineIndex = 0,
string configuredProductDescription = null, StockModel stockModel = null)
{
var context = new BasketInfoCellContext
{
Line = line,
ProductUrl = productUrl,
ProductTitle = productTitle,
ProductId = productId,
ReadOnly = readOnly,
ExtendedLines = extendedLines,
SingleLineMode = singleLineMode,
HasComponentTitle = hasComponentTitle,
LineIndex = lineIndex,
ConfiguredProductDescription = configuredProductDescription,
//[69559]3.3. DISPLAY STOCK FOR EACH ITEM IN BASKET
StockModel =stockModel
};
return CompiledHelpers.Themed(BasketHelpers.InfoCell, context);
}
Ticket 113689: [Ravensburger - Phase 2] 3.1. Display stock availability in the shopping cart.
