Add image on Category Page in Nopcommerce 4.5.4

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
1 年間の 前
Hi,

I have added the code as following in Category.Template.ProductsGridLine.cshtml for showing image. But still Image of Category not showing up.

<div class="col-md-12 col-sm-12 col-lg-3 col-xs-12">
                <img alt="@Model.PictureModel.AlternateText" src="@Model.PictureModel.ImageUrl" title="@Model.PictureModel.Title" />
            </div>

Can somebody help what I am doing wrong

Regards,
Diksha Jagtap
1 年間の 前
dj_diksha wrote:
Hi,

I have added the code as following in Category.Template.ProductsGridLine.cshtml for showing image. But still Image of Category not showing up.

<div class="col-md-12 col-sm-12 col-lg-3 col-xs-12">
                <img alt="@Model.PictureModel.AlternateText" src="@Model.PictureModel.ImageUrl" title="@Model.PictureModel.Title" />
            </div>

Can somebody help what I am doing wrong

Regards,
Diksha Jagtap


1. Just try to open the right source file and U'll see the correct code .... CategoryTemplate.ProductsInGridOrLines.cshtml.
2. Have U uploaded Categorie's picture?
Best.
1 年間の 前
Do you have a theme installed ?
If so there might be an equivalent file in Themes directory
i.e.
Themes\XXXXXX\Views\Catalog\CategoryTemplate.ProductsInGridOrLines.cshtml

You need to edit that file instead
Also after making changes you need to Stop / Start the webserver
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.