1

I've been searching for 2 hours now... I want to use a custom_renderer on the product view for the "color" attribute.

Many answers posted here are adding new attributes and setting "input_renderer" in an install script.

OK but what if my attribute already exists ? I don't want to drop it (and lose all its value).

It there a way to do that ? An event to use maybe ? I only want to change the renderer for this attribute and not for every input.

I hope i was clear enough. Feel free to ask any questions that may be needed.

1

In your install/upgrade script, this is how it's done for existing attributes:

$installer->updateAttribute(Mage_Catalog_Model_Product::ENTITY,'color','frontend_input_renderer','some/class_name_alias');

I hope this helps you out!

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.