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 '18 at 4:22
  • I'm using Version 2.2.1
    – Leon
    Mar 8 '18 at 15:12
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 '18 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 '18 at 3:49
  • Try this link magento.stackexchange.com/questions/216632/…
    – KamranKhan
    Mar 9 '18 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 '18 at 14:40
  • I don't have xml layout so without layout how can i do this ? Oct 25 '18 at 5:29

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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