How Each commercetools Discount Impacts the Cart JSON
Understanding how each commercetools discount impacts the cart JSON is an important skill. When a discount is applied, the JSON structure is updated to reflect the reduced prices, which can include changes to the subtotal, taxes, and total cost. This article explores what happens to the code at the API level when each type of discount is applied. It will also provide a Javascript code example that allows you to show your customers how much they're saving.