Skip to main content
  • 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; ?>

  • Create a new attribute under Store -> 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'). Example below.

    <?php if($_item->getData('my_attribute') == 1): //do something endif; ?>

  • Create a new attribute under Store -> 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'). Example below.

    <?php if($_item->getData('my_attribute') == 1): //do something endif; ?>

Source Link
Max
  • 1.9k
  • 5
  • 30
  • 52

  • Create a new attribute under Store -> 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'). Example below.

    <?php if($_item->getData('my_attribute') == 1): //do something endif; ?>