For a Magento Dropdown Attribute, it is possible to get an Attribute option Id by Attribute admin value?
Magento – Get Attribute option Id by Attribute admin value
attribute-optionsattributescustom-options
Related Topic
- Magento2 Attributes – Get Option Label/Text from Option ID
- Get Attribute Admin Option Value by Option ID or Store View Value
- Magento – Get Attribute Option Position from Option value
- Magento – How to get option_id of an option by label? (magento 2)
- Magento – how to get swatches attribute option in magento 2
- Magento – Get values of your attribute option text from product
- Magento2 – Get Attribute Option Label by Attribute Option ID
Best Answer
Suppose, you have an product attribute called "color" in Magento. You have the attribut admin value (e.g. Purple), and you want to find it’s value. The below code will help you get the value for it.