ShopConfig::get_site_currency PHP Method

get_site_currency() public static method

public static get_site_currency ( )
    public static function get_site_currency()
    {
        return self::get_base_currency();
    }

Usage Example

Exemplo n.º 1
0
 /**
  * Convert a numeric price to the shop currency
  * @param mixed $price the price to convert
  * @return Money the price wrapped in a Money DBField to be used for templates or similar
  */
 public static function price_for_display($price)
 {
     $currency = ShopConfig::get_site_currency();
     $field = Money::create("Price");
     $field->setAmount($price);
     $field->setCurrency($currency);
     return $field;
 }
All Usage Examples Of ShopConfig::get_site_currency