{ % assign freeshipping threshold = settings . show _ shipping _ value | plus:0% } { % assign cart price = cart . total _ price | money _ without _ currency | plus:0% } { % assign cart progress = cart price | times:100 | divided _ by:freeshipping threshold | round | plus:0% } { % assign difference = freeshipping threshold | MINUS:cart price % } { % if settings . show _ shipping _ bar % }
{% if cartPrice您距離免費送貨還差${{ difference }} {% comment %}您沒有資格享受免費送貨服務{% endcomment %} {% else %} 你有資格免費送貨 {% endif %} {% endif %} ` 我希望這個代碼是所有貨幣的工作。
我在這個freeShippingThreshold上應用了貨幣過濾器,但是當我更改貨幣時,它不會根據貨幣更改值