Alerts can’t be used in SCAN and custom quote.
We cannot put an alert script into a custom quote or SCAN and expect it to function.
PatternSmart Blog
We cannot put an alert script into a custom quote or SCAN and expect it to function.