yf_shop__format_price user module| File | plugins/shop/modules/shop/yf_shop__format_price.class.php |
|---|---|
| Use | module('shop__format_price'), URL ?object=shop__format_price |
| Property | Default | Description |
|---|---|---|
| None declared in this class. | ||
None without a leading underscore.
_ hooks and helpers; not routable as page actionspublic function _format_price($price = 0)
public function _format_price($price = 0)
{
$price = number_format($price, 2, '.', ' ');
if (module('shop')->CURRENCY == '$') {
return module('shop')->CURRENCY . ' ' . $price;
}
return $price . ' ' . module('shop')->CURRENCY;
}