a.m. how do you know that?
I have just copy original _ProductBox.cshtml to my plugin to override it. The original one has this directives:
@model ProductOverviewModel
@using Nop.Core
@using Nop.Core.Domain.Orders
@using Nop.Core.Domain.Tax
@using Nop.Core.Infrastructure
@using Nop.Web.Models.Catalog;
Why I have to add another one(Nop.Web.Framework), I don't understand. All other code is original, just this cshtml is from mine plugin but is currently the same as original one - so, no modifications. It should work.(well if I add other view, HomepageProducts.cshtm for examples, and it works).
Now I get different error:
Compiler Error Message: CS1061: 'System.Web.Mvc.HtmlHelper<Nop.Web.Models.Catalog.ProductOverviewModel>' does not contain a definition for 'GetTopicSeName' and no extension method 'GetTopicSeName' accepting a first argument of type 'System.Web.Mvc.HtmlHelper<Nop.Web.Models.Catalog.ProductOverviewModel>' could be found (are you missing a using directive or an assembly reference?)
Line 66: @T(inclTax ? "Products.Price.TaxShipping.InclTax" : "Products.Price.TaxShipping.ExclTax", Url.RouteUrl("Topic", new { SeName = Html.GetTopicSeName("shippinginfo") }))
I guess I have to add another reference?
thanks,
Simon