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
1200 280 506

成功

 Or  

{{ checkout.subtotal_price | money_without_currency }}
Senior Partner Solutions Engineer

元の投稿で解決策を見る

3件の返信3

junichiokamura
Community Manager
1200 280 506

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

Senior Partner Solutions Engineer
junichiokamura
Community Manager
1200 280 506

成功

 Or  

{{ checkout.subtotal_price | money_without_currency }}
Senior Partner Solutions Engineer
TakuN12
訪問者
3 0 0

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