Order Subtotal Delimiter


if I want to display a order total price in the affiliate program code I am using $order_info.subtotal

However, this shows a price with a comma delimiter, for example "219,99 " (there’s a space at the end for some reason).

  1. How do I change the comma for a dot only for this particular occasion? (219.99)
  2. How do I remove the empty space at the end?

I believe it has to do with your currency settings. The $order_info.subtotal is a numeric value (no non-breaking space) and is formatted based on the base currency definitions for the store. You must be screen scraping this value to be getting a non-breaking space.