move price formatting function from view to ecommerce helper