You'd loop over all the products and set the metafields one at a time. There's no apply to all (as far as I know). if it is the same metafield on all, why do you even need to add it? You could do the reverse, and just add a metafield when you need to disable something and just assume it's enabled for the rest of the time.
↧