In this chapter, we will add a “Discount Type” setting in the admin (flat / percentage), update the discount value field to work for both types, and enhance our checkout discount logic. By making these updates, we can easily handle both flat and percentage discounts, providing more flexibility and customization options for our users.






















