Fix missing require_once and improve delete discount flow