We have a store with many categories and sub categories.
We would like to display product SKU with product listing on category pages (which displays list of products related to that particular category).
Example -
Product is here - http://www.drumracks.com.au/drum-spill-containment-stand-2-drums
It is under category - DRUM SPILL STAND
which displays all products related to that category here - http://www.drumracks.com.au/drum-spill-stand
We want to display SKU of this product http://www.drumracks.com.au/drum-spill-containment-stand-2-drums which is NS-SL2 on this category page (which is listing products related to that category) http://www.drumracks.com.au/drum-spill-stand
HOW DO WE DO THAT?
Please help us. We tried out many different ways but nothing works. it just shows error page.
I can figure out that _ProductBox.cshtml is a file under /Views/Catalog/ folder and can place @Model.Sku anywhere to make it appear on the page.
but you have suggested 2 more changes. i am not able to figure out how/where to find them to put into? you have mentioned about ProductOverviewModel and PrepareProductOverviewModels - where can i find them please?
I can figure out that _ProductBox.cshtml is a file under /Views/Catalog/ folder and can place @Model.Sku anywhere to make it appear on the page.
but you have suggested 2 more changes. i am not able to figure out how/where to find them to put into? you have mentioned about ProductOverviewModel and PrepareProductOverviewModels - where can i find them please?
thanks again.
(We are using nopCommerce 3.20 version)
hi mitulbhavsar, you can find out ProductOverviewModel in the /Nop.Web/Models/Catalog/ProductOverviewModel.cs Add new property as public string Sku { get; set; }
For PrepareProductOverviewModels go to /Nop.Web/Controllers/CatalogController.cs line number 317.
Many thanks for this. following the above I have managed to add SKU and also StockAvailability to the _ProductBox.cshtml and now able to display these to on the category grid view.