0

i want to disable SKU in .phtml-file and i don't know where i can find the phtml-file that includes SKU. Please can somebody tell me whats the path to the file that includes phtml with SKU. Or if you have suggestion to delete it easier let me know, but in any case i want to know where the .phtml-file is, that include SKU. Path hints on developer doesn't show!

Thanks

2
  • do you want to disable sku from frontend to display from all pages? Commented Feb 18, 2016 at 11:24
  • from all pages!
    – ayhan
    Commented Feb 18, 2016 at 11:27

2 Answers 2

0

It depends on your template.

Try looking into catalog/product/view.phtml.

Search for something like $_product->getSku().

2
  • great man thats it!!!!!
    – ayhan
    Commented Feb 18, 2016 at 11:31
  • You are welcome. Just set this as correct answer and enjoy your Magento ;) Commented Feb 18, 2016 at 11:33
1

Log in to admin

Go to Catalog > attribute > Manage attribute

find attribute with name sku

click on sku attribute row.

Visible on Product View Page on Front-end select "No" also Used in Product Listing "No".

Clear cache.

refresh all pages.

Note:- Don't edit or delete from core files or .phtml is better idea if no need.

I hope this will help you.

5
  • This doesn't helped me i don't know why, i comment it out on view.phtml, thanks a lot!
    – ayhan
    Commented Feb 18, 2016 at 12:05
  • you have to clear cache and reindex data from admin and check it. Commented Feb 18, 2016 at 12:06
  • I undestand, but it was checked as disabled before i changed anything. i mean it was set on NO, as you described!
    – ayhan
    Commented Feb 18, 2016 at 12:09
  • ok dude...!!! but changing in templates is bed habit. i hope you understand. Commented Feb 18, 2016 at 12:10
  • Yes i understand, thats why i tried yours first. Thanks!
    – ayhan
    Commented Feb 18, 2016 at 12:14

Your Answer

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

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