How Can I Shows product price tag in the featured products of the home page in 2.0 ?

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
12 years ago
Sir,

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.

Thank You,

Regards,

Jithesh
12 years ago
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
12 years ago
This feature will be included in 2.2 version (mid october):
http://nopcommerce.codeplex.com/workitem/10133
12 years ago
Sir,

Ok your it works very well.
12 years ago
Hello,
you can see the demo here http://www.n-theme.com/products/31-electronics2_10.aspx
11 years ago
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!

thank you for any feedback.
11 years ago
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!

thank you for any feedback.
11 years ago
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?
11 years ago
https://www.nopcommerce.com/boards/t/12783/how-to-enable-price-on-featured-product-homepage-.aspx
11 years ago
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.

http://mikesoffroad.com.mytempweb.com/p/454/12-gauge-brown-txl-wire-25-ft

any thoughts on this?
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.