About price variables for tracking code

解決済
Highlighted
新規メンバー
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!

 

 

0 件の「いいね!」
Highlighted
Community Manager
Community Manager
527 118 194

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

Technical Partner Manager, Japan
0 件の「いいね!」
Highlighted
Community Manager
Community Manager
527 118 194

成功

 Or  

{{ checkout.subtotal_price | money_without_currency }}
Technical Partner Manager, Japan
0 件の「いいね!」
Highlighted
新規メンバー
3 0 0

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

0 件の「いいね!」