add affiliate habilitation logic