Here is an article I found on the developer forum to help with your question: Saving a folder full of stats through Datastore
I believe it would be smart to make a table of BoolValues
to determine if the player has a shop item or not. And then save those boolvalues with a datastore. I would personally set it up like this:
Shop = {
Brick = false,
Wood = false,
-- continuing
}