If you have a valid discount code, you can enter it during checkout, right after leaving the cart page.