2

How to hide SKU in search results. i want to show only price and description only. i have try to edit this file

vendor/magento/module-catalog/view/frontend/templates/product/list.phtml

And remove the SKU code but not working

2 Answers 2

1

I have find the answer to my question, I go to this directory

/app/design/frontend/Vendor/Vendor_theme/Magento_Catalog/templates/product/list.phtml

and I commented out this line

<?php /* @escapeNotVerified */ echo 'sku:' . $_product->getSku() ?> 

it works perfectly.

0

You can follow this answer. I think you are having the same problem. Hope this helps

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.