Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Link store credit to account on checkout is not working #245

Open
jogit82 opened this issue Sep 15, 2020 · 0 comments
Open

Link store credit to account on checkout is not working #245

jogit82 opened this issue Sep 15, 2020 · 0 comments

Comments

@jogit82
Copy link

jogit82 commented Sep 15, 2020

When someone checked the checkbox that says SAVE to link the remaining balance of their store credit to their account, it is not linking.
Repro:
go through checkout process
under store credit section, apply a store credit code
do not use all the credits, have some remainder
then choose add remainder to account(SAVE)
go through checkout
land on order confirmation
go to my account
store credit is not linked.

found possible fix:
line 1051 models-checkout.js
the error was undefined 'credit.code'
return credit.attributes.code.toLowerCase() === creditCode.toLowerCase();
** This solved the issue

*I tried return credit.get('code').toLowerCase() === creditCode.toLowerCase();
*Does not work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant