Apply your code in the shopping cart before completing the order, both as a guest user and as a registered user.