It's very simple, add the product you want to buy to the cart, select checkout and in the next step enter your code in the "gift card or discount code" field, click apply and the discount will be applied to the value of your purchase.