Displaying SKU on Category product listing page

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


You can do it the same way as described above.
Il y a 7 ans
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
Il y a 6 ans
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.