Bug is that the condition says
<<if !boughtreddress>>
It should be:
<<if !$boughtreddress>>
There is another bug in the store where if you try to model underwear only, you get an error about a bad elseif:
<<elseif $outfit === "none" && $panties !==="none">>
Should be
<<elseif $outfit === "none" && $panties !== "none">>
If people are comfortable editing the html, that seems to fix everything for me.