I am trying to make it easier to make changes to a website that is a decent size. There are hundreds of variants/products. A lot of the variants are the same from product to product. So in the hard code I want to save the variants to an array or an object in one file. Then pull one line of code into another file. Is there a way to create your own global objects in shopify? Or have I reached a dead end?
If that works then I have to write some exceptions for the objects too.
I maybe overlooking something obvious but I am not sure.