On cart page I am receiving this error in console:

Failed to load the "Magento_GiftMessage/js/view/gift-message" component

*Applied coupon code "test123" not showing in cart page summary.

However the subtotal showing correct with deducted of discount amount*.

I have disabled 3rd party modules one by one. Still no change. Maybe this error is responsible to not display Discount amount in cart page summary.

  • did you get any solution for this? Nov 27, 2019 at 8:07
  • I'm also getting the same error in console [ERROR] Failed to load the "Magento_GiftMessage/js/view/gift-message" component. Jun 8, 2020 at 16:38

1 Answer 1


I have applied below code as I have to also move it to "checkout.cart.shipping"

<referenceBlock name="checkout.cart.coupon" remove="true"/>
    <block class="Magento\Checkout\Block\Cart\Coupon" 
 name="checkout.cart.coupon2" as="coupon" template="Magento_Checkout::cart/coupon.phtml"/>
    <move element="checkout.cart.coupon2" destination="cart.summary" before="checkout.cart.shipping"/>

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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