Extend product Options Model


#1

I want to extend product options form in the admin panel to add an extra field (maybe also images support):

I want this for being able to define color (hex code) and patterns (image) for some products options.

I already did:

  1. Extended ProductOptionsValue entity
  2. Extended ProductOptionsValueType form
  3. Register form extension
  4. Update db schema

I tried to print the new field in the template but it doesn’t work.
I noticed that the form and the model are more complex than it seems.

This is possible? or I should look for a workaround?

Thanks,