Werid formating with price and Math problem (Supple theme)

Hello all, so i have a couple of problems with my showing of prices.

1. First of my price shows as 1,700 kr instead of 1 700. The part i dont understand is that if i just retype the same code just below it looks good (see the Blue square on image). However if i choose another variant with a other price only the Red square updates the price and the blue is still on 1700. So how to get it to show the price without the " , " sign?

2. I would like to do some math on the price. But no math formula seems to be working on the red square. Lets say what to divide price by 12, {% include ‘price’ with variant.price | divided_by: 10 %} but nothing happens. How to add a math formula to the price?

The code(with out math) it looks like this:




  • {% include ‘price’ with variant.price %}

    {% include ‘product-unit-price’, variant: variant %}

  • {% if product.compare_at_price_max > product.price and section.settings.product_show_saved_amount %}


  • {% assign compare_price = variant.compare_at_price %}
    {% assign product_price = variant.price %}
    {% include ‘price-sale’ %}


  • {% endif %}
    {% if section.settings.product_reviews_enable %}



  • {% endif %}

Thanks a lot