In order to generate a “Discount Code”, an operator user has to follow these steps:

Dashboard-> Settings -> Discount Code -> Add Discount Code.