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?



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>

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

Now you can see discount there.

  • what will be the location of this file with name checkout_cart_index.xml – Abhishek Tripathi Nov 17 '17 at 9:54
  • I am asking about the location of that place where i need to put this code, that is where in my theme? – Abhishek Tripathi Nov 17 '17 at 10:36
  • Do we need to override the same file from where we copied this code or somewhere else? Because it is not working with the same file – Abhishek Tripathi Nov 17 '17 at 10:42
  • I have created a file at location magento_root\app\design\frontend\Theme_package\theme\Magento_SalesRule\layout\checkout_cart_index.xml but it is not working with it – Abhishek Tripathi Nov 17 '17 at 11:26
  • @Miroslav Due to your edit, solution is not understandable. – Nitesh Nov 17 '17 at 11:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.