Magento 2 – Override Recently Viewed Products Template

magento2recently-viewedtemplate-override

I want to override the phtml viewed_list.phtml file but I have not had any results, the file comes from the vendor folder:

/vendor/magento/module-reports/view/frontend/templates/widget/viewed/content/viewed_list.phtml

I want to modify part of the code and the adjustments are not seen, it does not enter, creating the file:

/app/design/frontend/Vendor/theme/Magento_Reports/templates/widget/viewed/content/viewed_list.phtml

any idea why the changes are not visible?

Thanks!

Best Answer

You are looking for the wrong file, The template file for the recently viewed product is below.

vendor/magento/module-catalog/view/base/web/template/product/list/listing.html

Override above file in the theme in below path.

app/design/frontend/Vendor/theme/Magento_Catalog/web/template/product/list/listing.html
Related Topic