Now I am using nopCommerce 2.0 version. In the featured products catalog (home page), i want to show price of that product. Also I noticed that , in the Recently Added product page , each product's price shown clearly. Similarly I want to display price in featured products of the home page.
Please help Immediately. Kindly send reply as soon as possible.
Go to Controllers/CatalogController.cs and find HomepageProducts() method change from false to true in the PrepareProductOverviewModel
//public ActionResult HomepageProducts() //{ // var model = _productService.GetAllProductsDisplayedOnHomePage() // .Select(x => PrepareProductOverviewModel(x, false, true)) // .ToList();
// return PartialView(model); //} public ActionResult HomepageProducts() { var model = _productService.GetAllProductsDisplayedOnHomePage() .Select(x => PrepareProductOverviewModel(x, true, true)) .ToList();
return PartialView(model); }
Second step. Go to Views/HomepageProducts.chtml and add @item.ProductPrice.Price in the place where you going display price For Old Price, use @item.ProductPrice.OldPrice
in 2.2 is there a way, when a client clicks on a product, that you can show the price ? i don't see that anywheeeeeeere! i believe i've look every where i can think of!
in 2.2 is there a way, when a client clicks on a product, that you can show the price ? i don't see that anywheeeeeeere! i believe i've look every where i can think of!
for clarity - once you click on a product (featured i guess) and you see an image on the left, and a description on the right. is there a way to show the price there, on the right without having to include it in the title?
hiay meg - thanks for the response. I found that post - but didn't find what i needed. Here's a link to a display, where it says, share, email to friend etc - in that box - can one show a price or no?
i knooooooow it's at the bottom of the page - but client asked for it up there. But obviously would like to avoid placing the price in the description bc our prices change frequently.