@ryleigh
To show 4 digits after the decimal in Shopify, you can use the number filter in your liquid code. Here's an example of how you can display a number with 4 digits after the decimal:
1
|
{{ product.price | money_with_currency | split: '.' | first }}.{{ product.price | money_with_currency | split: '.' | last | slice: 0, 4 }} |
In this code snippet, we first use the split
filter to split the price into two parts: the whole number part and the decimal part. Then, we use the slice
filter to only display the first 4 digits of the decimal part.
By following these steps, you can show 4 digits after the decimal in Shopify.