Create a new attribute under Store -> AttributesStore -> Attributes
link the newly created attribute to the Attribute Set (Store-Menu)
in your phtml, get value of Attribute with $_item->getData('your_attribute_code')
$_item->getData('your_attribute_code')
. Example below.<?php if($_item->getData('my_attribute') == 1): //do something endif; ?>
Rushvi
- 2.8k
- 2
- 15
- 31