I’m trying to calculate a value by subtracting the magento subtotal of my cart from another value, let’s say 50. This is the code:
Now it kind of works, but the result isn’t right. I think the issue is that the magento subtotal doesn’t include decimals? So if let’s say the subtotal is 6.98 the result is 44.00 so I assume it only subtracts the 6?