How to remove empty attributes “N/A” in Magento 2?

Just Override attributes.phtml file from Catalog module into your theme, Its working for Multilanguage store also.

Theme Path for attributes.phtml file,

app/code/{Packagename}/{themename}/Magento_Catalog/templates/product/view/attributes.phtml

Just keep line,

<?php if($_data[‘value’] == __( ‘N/A’)) continue;?>

after

<?php foreach ($_additional as $_data): ?> line,

Full code of attributes.phtml file,

 

Clear cache using php bin/magento cache:flush.

Leave a Reply

Your email address will not be published. Required fields are marked *