{if $main ne "anonymous_checkout" AND $main ne "checkout"} Do this is it's not in the checkout phase {/if}