price_for_display() public static method

Convert a numeric price to the shop currency
public static price_for_display ( mixed $price ) : Money
$price mixed the price to convert
return Money the price wrapped in a Money DBField to be used for templates or similar
 public function testPriceForDisplay()
 {
     $dp = ShopTools::price_for_display(12345.67);
     $dp->setCurrency("NZD");
     $dp->setLocale("en_NZ");
     $this->assertEquals($dp->Nice(), "\$12,345.67");
 }