0

I am trying to update the prices on Shopify theme I have added the same code (| times: 1.16) in another snippet and it works fine but it doesn't work in another snippet.

{%- capture _price -%}{%- if value != blank -%}{%- if settings.currency_format == 'money_with_currency_format' -%}{{- value | money_with_currency -}}{%- else -%}{{- value | money -}}{%- endif -%}{%- endif -%}{%- endcapture -%}

{% assign newPrice = _price | times: 1.16%}

{{ newPrice }}

{% comment %} The expected output was from $5,657.00 to $6,562.12 but it changes to zero instead {% endcomment %}

Daniel A. White
  • 187,200
  • 47
  • 362
  • 445
Honey_G
  • 11
  • 2
  • Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking. – Community Jun 01 '23 at 19:46

0 Answers0