FROM CACHE - jp_header

About price variables for tracking code

解決済
TakuN12
新規メンバー
3 0 0

Hi, I'm currently located in Japan and have a Shopify store here. 

 

I want to add tracking code with variables and refer the subtotal price from checkout.

However, the code needs to be {{checkout.subtotal_price}} and cannot include |money.

 

Since my store is using JPY currency, so if I add {{checkout.subtotal_price}}, then it shows extra 00 in the end.

 

Is there any way that I can output pure right price number?

 

Thanks!

 

 

1 件の受理された解決策

ベストソリューション
junichiokamura
Community Manager
Community Manager
1162 272 480

成功

 Or  

{{ checkout.subtotal_price | money_without_currency }}
Technical Partner Manager, Japan

元の投稿で解決策を見る

3件の返信3
junichiokamura
Community Manager
Community Manager
1162 272 480

How about using Math filters?
https://help.shopify.com/en/themes/liquid/filters/math-filters

Technical Partner Manager, Japan
junichiokamura
Community Manager
Community Manager
1162 272 480

成功

 Or  

{{ checkout.subtotal_price | money_without_currency }}
Technical Partner Manager, Japan
TakuN12
新規メンバー
3 0 0

ご回答いただきありがとうございました!無事に本件解決しました。