2

I'm trying to apply coupon code on Magento2 store.
I have created normal coupon code (without any condition) When I applied it on cart page it not working give me an error "The Coupon code is invalid" But when I go for checkout then apply it so it work there (same coupon code )..

Please look into below images. not working on cart page

Working on checkout page

Please assist me !!

6
  • is that depends on grand total? Commented May 3, 2017 at 11:33
  • NO, Here you can see image of my rule s8.postimg.org/q52ukpd6d/code.png
    – Bhavesh
    Commented May 3, 2017 at 12:38
  • have you added any condition into rule? Commented May 3, 2017 at 12:42
  • No, I just do above screen shot setting, That's it.
    – Bhavesh
    Commented May 3, 2017 at 12:44
  • How can i debug it ?
    – Bhavesh
    Commented May 3, 2017 at 12:53

1 Answer 1

1

Go to below js path :- app\design\frontend\Vendor_Name\Theme_Name\Magento_Ui\web\js\lib\core\collection.js

Line no :- 272 (find below line) var hasObsoleteComponents = items().length && !_.intersection(_elems, items()).length;

Just Replace function items just like below

var hasObsoleteComponents = items.length && !_.intersection(_elems, items).length;

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.