How To Hide The Voucher Code Field

How do you as store admin hide the voucher field in the checkout process? Is there an method by which you can hide the voucher code depending on for instance a customer is logged in or belongs to certain group or simply is only shown when a customer is not yet assigned to a group ?

Is there an addon that would make it possible just to turn it off ?


if Gift Certificates module enabled, use this template


To hide by login status

{if $auth,user_id}

To hide by user group

{if 123|in_array:$auth.usergroup_ids}