Adding field to option value table (oc_option_value)
Posted: Fri Nov 23, 2012 10:59 pm
Hello,
I have added a field to the oc_option_value table, named 'hexcolor' which is a varchar of 6 characters. This way I don't have to use the 'image' field (which is not used at all in OpenCart) but now i can easily display those colors via the hexcode, at least, if that entry is not left blanc.
My question is, how do i add this field the best way to the CMS? I have never written my own module or extension but i would like to try it if neccesary. Or do i just have to text-edit the pages? But then i can't do updates anymore i guess...
I have added a field to the oc_option_value table, named 'hexcolor' which is a varchar of 6 characters. This way I don't have to use the 'image' field (which is not used at all in OpenCart) but now i can easily display those colors via the hexcode, at least, if that entry is not left blanc.
My question is, how do i add this field the best way to the CMS? I have never written my own module or extension but i would like to try it if neccesary. Or do i just have to text-edit the pages? But then i can't do updates anymore i guess...