Create a promotion
- Navigate to orders -> promotions
- Click the create-button. Select the wanted promotion type and click create.
- Click on the edit button next to Unique discount codes.
- Add the coupon codes that you want to be available, and check One-Time Usage.
Setup order workflow
In the order type setup make sure to add the workflow step “Check and update coupon usage”. The common place to put it is on the first orderstatus to prevent a customer from placing multiple orders using the same discount code.
Apply discount code to a cart
- To apply a discount code to a cart in the UI, go to order details, click edit and click coupon codes.
- After applying the discount code and clicking save, the discount should be applied to the cart.
Complete the order
- Create the order by completing all the necessary steps in the cart.
- After the order has been placed the discount code will be displayed as used and is no longer possible to use.