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

Filter to change currency - how to make it work inside templates #66

Open
Jesus82 opened this issue Apr 19, 2016 · 1 comment
Open

Filter to change currency - how to make it work inside templates #66

Jesus82 opened this issue Apr 19, 2016 · 1 comment

Comments

@Jesus82
Copy link

Jesus82 commented Apr 19, 2016

I have built [this filter] in order to be able to switch currencies (http://jsfiddle.net/Joe82/nkr7zch7/)

I have it in my controller, and it works fine for my html, but it doesn't work for the data that is inside the ngCart templates (addtocart.html; cart.html; checkout.html; summary.html). The console gives the following error: selectedCurrency is undefined
EDIT: The problem is more specifically that the ng-cart directive cannot access the scope outside of the directive that contains the currency symbols and exchange rates. I have tried it by using $rootscope but it doesn't work. Any idea how to achieve that? Thanks

@jasontrk
Copy link

jasontrk commented Jul 2, 2017

Hi there, did you manage to change the currency within the cart in the end? I'm dabbling with ngcart and can't seem to get the default currency to change to £.

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

2 participants