Liquid customization cart screen subtotal is multiplied by 100

shira1
Excursionist
44 0 5

I have a question about cart.total_price on the cart screen (sections / cart-template.liquid).
cart.total_price contains 100 times the subtotal.
Example.
If the subtotal is 1,000 yen, cart.total_price = 100000

This is displayed as 1/100 in Money filters such as money_with_currency, but why is it multiplied by 100 in the first place?
I thought about calculating the value from the subtotal with my own script, but I'm not sure if it's okay to simply display it at 1/100, so I'll check it.
Is there a page with explanations?

I'm sorry for the basic part, but I would appreciate it if you could teach me.

0 Likes