0

There is a file that is used asynchronously in the front end called listing.html at the following path.

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

It is used by the recently viewed to render recently viewed items.

I want to override this file in my Vendor/Theme/ folder.

I have already tried the following locations design/frontend/FossilGroup/default/Magento_Catalog/templates/product/list/ design/frontend/FossilGroup/default/Magento_Catalog/web/template/product/list/ design/frontend/FossilGroup/default/Magento_Catalog/web/templates/product/list/ design/base/FossilGroup/default/Magento_Catalog/template/product/list/ design/base/FossilGroup/default/Magento_Catalog/templates/product/list/ design/base/FossilGroup/Magento_Catalog/template/product/list/ design/base/FossilGroup/Magento_Catalog/templates/product/list/ design/web/FossilGroup/default/Magento_Catalog/templates/product/list/ design/web/FossilGroup/default/Magento_Catalog/template/product/list/

Version: Magento 2.2

2
  • which magento version you are using ? because up to 2.1.6 there is no listing.html available on path you provided.
    – Pawan
    Mar 8, 2018 at 4:22
  • I'm using Version 2.2.1
    – Leon
    Mar 8, 2018 at 15:12

1 Answer 1

1

Copy this file

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

Paste it here.

  app/design/frontend/Vendor/theme/Magento_Catalog/web/template/product/list/listing.html
5
  • I've tried this. This is one of the examples above.
    – Leon
    Mar 8, 2018 at 16:54
  • This is the right way to do it, i think you might have issue with your layout file or block file.
    – KamranKhan
    Mar 9, 2018 at 3:49
  • Try this link magento.stackexchange.com/questions/216632/…
    – KamranKhan
    Mar 9, 2018 at 4:11
  • This is the correct path! I just needed to run the command php bin/magento setup:upgrade after adding the file.
    – Leon
    Mar 12, 2018 at 14:40
  • I don't have xml layout so without layout how can i do this ? Oct 25, 2018 at 5:29

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.