Add price to homepage products

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
11 years ago
for adding product price in home page products :
1.changing code in "HomepageProducts" in catalogcontroller to this .

model.Products = PrepareProductOverviewModels(_productService.GetAllProductsDisplayedOnHomePage(),
               true, true, productThumbPictureSize)
               .ToList();


2.updaing productsmallbox.cshtml to show prices
<div class="product-price">
                <span class="price">@Model.ProductPrice.Price</span>
            </div>

works for me.
If anyone knows better solution, please explain.
11 years ago
negar wrote:
for adding product price in home page products :
1.changing code in "HomepageProducts" in catalogcontroller to this .

model.Products = PrepareProductOverviewModels(_productService.GetAllProductsDisplayedOnHomePage(),
               true, true, productThumbPictureSize)
               .ToList();


2.updaing productsmallbox.cshtml to show prices
<div class="product-price">
                <span class="price">@Model.ProductPrice.Price</span>
            </div>

works for me.
If anyone knows better solution, please explain.



Hi,

Where about in the 'catalogcontroller' like what line number do we make these changes.

Thank you
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.