Close

SHOW IMAGE OF THE CATEGORY OR SUBCATEGORY

bosadomkt
4 years ago
#16683 Quote
Avatar
  • 4
When the articles of a subcategory are listed and all their products are displayed, how can the image of the subcategory or category be displayed at the top of the page?
bosadomkt
4 years ago
#16729 Quote
Avatar
  • 4
I would like show the picture of category after last category of the breadcrumb.
I try put different code in CategoryTemplate.ProductsInGridOrLines but I don't success.

For example, I put:
    <img alt="@Model.PictureModel.AlternateText" src="@Model.PictureModel.ImageUrl" title="@Model.PictureModel.Title" />

But Model.PictureModel is Nothing

Thanks.
Valentin
4 years ago
#20872 Quote
Avatar
  • Moderator
  • 172
Hello bosadomkt,

unfortunately, this is not possible in the nop-system. The information for the category image is not available in the Category model and you cannot show it on the Catalog pages.
Best Regards,

Valentin Kirov
Nop-Templates.com