Skip to main content
added 7 characters in body
Source Link
Khoa TruongDinh
  • 32.3k
  • 11
  • 90
  • 156

How can I retrieve the category image (url) in the list.phtmlI retrieve the category image (url) in the list.phtml file?

I am currently using this to get the current category:

<?php $category = $_objectManager->get('Magento\Framework\Registry')->registry('current_category'); ?>

But I don't know how to get the image url using $category?

How can I retrieve the category image (url) in the list.phtml file?

I am currently using this to get the current category:

<?php $category = $_objectManager->get('Magento\Framework\Registry')->registry('current_category'); ?>

But I don't know how to get the image url using $category

How can I retrieve the category image (url) in the list.phtml file?

I am currently using this to get the current category:

<?php $category = $_objectManager->get('Magento\Framework\Registry')->registry('current_category'); ?>

But I don't know how to get the image url using $category?

Source Link

Get current category image?

How can I retrieve the category image (url) in the list.phtml file?

I am currently using this to get the current category:

<?php $category = $_objectManager->get('Magento\Framework\Registry')->registry('current_category'); ?>

But I don't know how to get the image url using $category