I added a new attribute to a product. The attribute is named "is_brand_new". The product shows in the catalog product view in the upselling and related slider.
But the new attribute is not in the product data. I even cleared the cache
I outputted all the data from the item
app\design\frontend\company\base\Magento_Catalog\templates\product\list\items.phtml:
if ($_item->getData("name") == "t-shirt") {
var_dump($_item->getData());
}
But it does not contain the data for the attribute is_brand_new
.
What I try to do is show an icon if the product is marked as brandnew. So I added a new checkbox attribute in the backend. Now I try to read it out and show the icon if the checkbox is enabled.