I have added a custom field(price) to magento dropdown attribute(see image).http://i.stack.imgur.com/lwi8I.jpg

I also added a new column to eav_attribute_option table and I can pull down the prices I have added manually. As I am new to Magento, how do I go about saving this price to the eav_attribute_option table? any help is greatly appreciated.

  • Why are you adding a column to a SQL table? In the screen shot you are adding static prices (i.e. you can add this to a product but it will be for all products) Sep 8 '14 at 17:31

Always happens, I stumble upon a solution after hitting up SE.

Anyways, the solution lies in overriding Mage/Eav/Model/Resource/Entity/Attribute.php file. In the the _saveOption() method, I copied how sort order was being captured and saved

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.