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 !!

  • is that depends on grand total? – Sunil Patel May 3 '17 at 11:33
  • NO, Here you can see image of my rule s8.postimg.org/q52ukpd6d/code.png – Bhavesh May 3 '17 at 12:38
  • have you added any condition into rule? – Sunil Patel May 3 '17 at 12:42
  • No, I just do above screen shot setting, That's it. – Bhavesh May 3 '17 at 12:44
  • How can i debug it ? – Bhavesh May 3 '17 at 12:53
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;

| improve this answer | |

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.