I have the following at the top of one of my pages:
{if "{fn_zone}"!=""}
{redirect="/store"}
{if:else}
{exp:stash:destroy name="delivery_day"}
.... More stuff ....
{/if}
However, what I'm finding is that regardless of the conditional the stash variable is always being destroyed.
I've even tried changing it to the following:
{if "{fn_zone}"!=""}
{redirect="/store"}
{/if}
{if "{fn_zone}"==""}
{exp:stash:destroy name="delivery_day"}
{/if}
Yet its still doing the same.
Can anyone advice how to deal with this?