Displaying SKU on Category product listing page

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
8 年 前
[email protected] wrote:
Anyone know how to do this in 3.7?


You can do it the same way as described above.
7 年 前
I am using 3.8. Looks like things have changed a little.  Here are the steps:

ProductOverviewModel.cs:
add:
public string Sku { get; set; }

ControllerExtensions.cs (Line 99):        
find:
var model = new ProductOverviewModel
                { }
add:
Sku = product.Sku

_ProductBox.cshtml:
add:
@Model.Sku
6 年 前
cliebich wrote:
I am using 3.8. Looks like things have changed a little.  Here are the steps:

ProductOverviewModel.cs:
add:
public string Sku { get; set; }

ControllerExtensions.cs (Line 99):        
find:
var model = new ProductOverviewModel
                { }
add:
Sku = product.Sku

_ProductBox.cshtml:
add:
@Model.Sku


In 3.5 I get an error. Is the code digging?
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.