Magento – Get attribute option ID from value
Start a magento powered online store for $4.95 only with this magento host
Host unlimited magento stores for $24.95 only with this magento hosting plan
Host your popular magento stores on a reliable server with this dedicated hosting plan
Magento is the leading e-commerce platform rapidly gaining in popularity. This magento discussion was started by nanos on December 19 2009
I have the following situation: For our online-bookshop I have created an attribute called author. Now, I would like to be able to have a link on any product-page. E.g. on the product-page of a book by J.N. Darby I want to have the author’s name converted to a link to the advanced search result page, for author J.N. Darby.
The problem is that I need the ID for the option to achieve that. I know, how to get the option value via getAttributeText(’author’), but how do I get the corresponding ID?
Can anybody help me with that?
Discuss this, get free magento help.
This magento help blog is proudly hosted with this host. If you're new to magentohelp, you may want to subscribe to this magento RSS feed