The below article is a guide on how to add the Payflex calculator to Shopify if you are using the Dawn theme. Please note that the exact locations of where to add the CSS will differ from theme to theme.


If you are using a custom or purchased theme, we would advise you to reach out to the developers for assistance locating the exact area to add the PayFlex widget within the Themes CSS.

Simple calculator

Note: The simple calculator will not calculate the product's price variants, please refer to the second half of this article for that.

<script async src="{{ product.price | money_without_currency | remove: ',' }}" type="application/javascript"></script>

Price Varients Calculator

        {%- if product.variants[0] -%}
            {%- assign priceforwidget =  product.variants[0].price -%}
        {%- else -%}
            {%- assign priceforwidget =  product.price -%}
        {%- endif -%}
        <script async src="{{ priceforwidget | money_without_currency | remove: ',' }}" type="application/javascript"></script>