Hi everyone - I’m trying to setup an interface whe...
# general
e
Hi everyone - I’m trying to setup an interface where people can visually select option types via image radios. Does anyone have some ideas on the best way of attaching images to option values so they can be manually displayed? I did find this plugin https://github.com/hefan/solidus_dynamic_variants which helps separate the option types from the variants, which gets me part of the way there. Any suggestions or insight would be appreciated. Thank you.
just in case an example of the interface is helpful
If anyone is interested in this, I ended up just overriding the model, adding a has_one relationship to spree asset, and then overrode the admin templates backend for option_type to provide an file upload field for each option_value
a lot more overriding than I wanted to do, so if anyone has some suggestions, I’m definitely receptive to some better solutions
v
I honestly think that's a fair way to go. You would need to add a field to the option_value. Wether its a string or an image.
d