Question

I have a product attribute which is configured to be a dropdown with a fixed list of available values.

Now I need to write a script which will filter based on the selected value of the dropdown attribute. The filter needs to know the integer ID of the value, but the script input uses the text based label of the attribute.

How would I lookup the integer ID of the desired attribute value?

No correct solution

Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange
scroll top