My products have a product group metaobject allocated to them, inside that meta object there is product group information including a unique color for each group, its in this format: #88D189
I can call it inside product pages / liquid etc, but how can I replace the theme color settings and make it to follow such color if it exists?
I’m specifically talking about the color of the buttons which come from " Solid button background color " in the theme settings.
How can I override this color, with a code saying if the metaobject / field exists then use metaobject/metafield color, if not then use the them setting color.
Thank you!