How to make global metafield for site wide sale

For our website, we want to disable certain apps when we are running site wide sales. I’m looking to find a way to add a global metafield or something similar to turn this setting on or off. My only solution so far is putting a metafield on a collection, then for looping over the collections to find that metafield. If true, I assign a variable to use in the liquid files. I’d prefer to have a more global variable rather than putting this value on a collection

1 Like

Hi @coby_ss :waving_hand:

The Metafield object is generally attached to a resource as its Metafield.owner. I’d recommend reviewing the MetafieldOwnerType list to determine which resource would be best suited for your needs.

Hope that helps!