Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
536 views
in Technique[技术] by (71.8m points)

handlebars.js - BigCommerce Price Display - Show raw price

In BigCommerce using the standard handlebars syntax {{price.with_tax.value}} price is displayed as 319.99. I would like to display this price without the decimal in raw format as 31999. Is this possible to retrieve in BigCommerce?

Thanks

question from:https://stackoverflow.com/questions/65889246/bigcommerce-price-display-show-raw-price

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

You can use the multiply Handlebars helper to get the result you desire.

{{multiply price.with_tax.value 100}}

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...