Get the current currency
i build a teaser on home where need to check the current selected currency.
Is there a way to check this with php? Something like:
// do this
global $currency; if ($currency->currency == 'EUR'):
Is that possible?
Or even better, print the price field of a product, something like:
$nid = 45; $node = node_load($nid); $nodeView = node_view($node, 'price_field'); print drupal_render($nodeView);