Magento 2 – Discount Label and Amount Not Showing on Checkout Cart Summary

checkoutmagento2

I have created 10%off cart rule and then applied it.

It's applying correctly but Discount Label and Amount are not showing in checkout cart.

enter image description here

** UPDATE **

When I'm changing my theme to default luma then

Discount is showing.(Below Image)

enter image description here

What to do to show that row?

Best Answer

/vendor/magento/module-sales-rule/view/frontend/layout/checkout_cart_index.xml

Take below code from above file

<item name="discount" xsi:type="array">
   <item name="component" xsi:type="string">Magento_SalesRule/js/view/cart/totals/discount</item>
   <item name="config" xsi:type="array">
    <item name="title" xsi:type="string" translate="true">Discount</item>
   </item>
</item>

Insert it in checkout_cart_index.xml file of Magento_checkout in your theme by Overriding it there.

Now you can see discount there.

Related Topic