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

Make it work with currency conversion #10

Open
IAmOrion opened this issue Jun 2, 2016 · 2 comments
Open

Make it work with currency conversion #10

IAmOrion opened this issue Jun 2, 2016 · 2 comments

Comments

@IAmOrion
Copy link

IAmOrion commented Jun 2, 2016

@carolineschnapp Is it possible to work with currency conversion? I'm struggling to get it to support the conversions :(

@horatiua
Copy link

You just need to define
<script>Shopify.money_format = "{{ shop.money_format }}";</script>
and then inside the JavaScript template call the slate currency function (it also needs slate.utils)
${slate.Currency.formatMoney(price_min, Shopify.money_format)}

@tungbv
Copy link

tungbv commented May 11, 2018

Hi
I follow your instruction but it's doesn't work for me. Pls explain for me

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

3 participants