Skip to main content

Timeline for Message on category page

Current License: CC BY-SA 4.0

12 events
when toggle format what by license comment
Jul 21, 2020 at 10:32 vote accept ishaq
Jul 21, 2020 at 10:29 comment added Bhaumik Upadhyay @ishaq Thanks, I have updated the name of file in answer. Both file using the same block \Magento\Catalog\Block\Product\ListProduct.
Jul 21, 2020 at 10:28 history edited Bhaumik Upadhyay CC BY-SA 4.0
deleted 4 characters in body
Jul 21, 2020 at 10:17 comment added ishaq Thanks for your help but the file was list.phtml not listing.phtml after commenting the code inside list.phtml message disappeared.
Jul 19, 2020 at 14:16 comment added Bhaumik Upadhyay Have you tried and checked as suggested above comments?
Jul 19, 2020 at 13:09 comment added Bhaumik Upadhyay Also, enable template path hint from backend and check if your template is called in front or not! Make sure you have enabled the theme from backend for your store.
Jul 19, 2020 at 13:07 comment added Bhaumik Upadhyay Try removing the <?= $block->escapeHtml(__('We can\'t find products matching the selection.')) ?> and remove rm -rf var/* generated/* pub/static/*, re-run static content deploy, clear the cache and check again.
Jul 19, 2020 at 12:50 comment added ishaq <!-- <p class="message note"><?= $block->escapeHtml(__('We can\'t find products matching the selection.')) ?></p> --> updated this line in listing.phtml file
Jul 19, 2020 at 12:49 comment added ishaq still, no way put this file in my custom theme but the message is still there deployed static content and cleaned and flushed cache also. put file in this location and commented the code /var/www/html/app/design/frontend/Airosoconnect/base/Magento_Catalog/templates/product
Jul 19, 2020 at 12:22 comment added Bhaumik Upadhyay @ishaq You need to copy the original file in your child theme and apply the changes. Copy file to the child theme app\design\frontend\<VENDOR_NAME>\<THEME_NAME>\Magento_Catalog\templates\product\listing.phtml and make the code changes.
Jul 19, 2020 at 12:19 comment added ishaq how to use this in my child theme?
Jul 19, 2020 at 10:36 history answered Bhaumik Upadhyay CC BY-SA 4.0