Use custom money formats (* For advanced users)
Why?
Sometimes you may need to format a currency different than shown in the app. For that you can use a custom set of currency formats with the Bucks.
This method wont work for 'Shopify Markets' enabled stores.
*Prerequisites
You should have basic developer knowledge to do this on you own. if not you can contact our support team for help
How?
Goto Themes -> Edit code
in the snippets section click + add new snippet
Name the file bucks-custom-formats
Shown below is the format of the code to add
<script>
window.bucksCC =. ((window || {}).bucksCC) || {}
window.bucksCC.customFormats = {
USD: {
money_format: '${{amount}}',
money_with_currency_format: '${{amount}} USD'
},
EUR: {
money_format: '€{{amount_with_comma_separator}}',
money_with_currency_format: '€{{amount_with_comma_separator}} EUR'
},
}
</script>
After adding your required currency format
Goto theme.liquid file.
Search for '</head>' within the file using Ctrl/Cmd + F key shortcut,
Add this line of code just above the </head> tag
{% include 'bucks-custom-formats' %}
Click Save
Now the Bucks will use the updates currency format instead of the default one.
Hope you've got some value from this video.
Let us know your feedback 🙂 We are excited to hear your thoughts.🙂
Updated on: 17/09/2024
Thank you!