You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
I have an item with a sale on it. The item is $10. The sale is for $10. This makes the item 0. When then item is added to the cart the "totalAsCurrency" variable from getting the cart via JSON is the integer of 0. When the price is not zero it would be a string with the dollar sign in front. i.e. "$10.00".
To Reproduce
How, and what happened?
Have a variant with a sale that makes the item price 0.
Add then item to the cart.
Check the totalAsCurrency value. It is an integer of 0.
Add an item to the cart that doesn't have a sale price of 0.
Check the totalAsCurrency value. It is a string.
Expected behavior
What did you expect to happen?
The totalAsCurrency value should always be a string with the currency symbol in front of it.
Additional info
Craft version: 3.4.25
Commerce version: 3.1.10
PHP version: 7.4
Database driver & version: 8.0.20
Other Plugins & versions: N/A
The text was updated successfully, but these errors were encountered:
Description
I have an item with a sale on it. The item is $10. The sale is for $10. This makes the item 0. When then item is added to the cart the "totalAsCurrency" variable from getting the cart via JSON is the integer of 0. When the price is not zero it would be a string with the dollar sign in front. i.e. "$10.00".
To Reproduce
How, and what happened?
Expected behavior
What did you expect to happen?
The totalAsCurrency value should always be a string with the currency symbol in front of it.
Additional info
The text was updated successfully, but these errors were encountered: