Get the current currency
Hy,
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:
<?php
global $currency; if ($currency->currency == 'EUR'):
?>
<?php
endif;
?>
Is that possible?
Or even better, print the price field of a product, something like:
<?php
$nid = 45; $node = node_load($nid); $nodeView = node_view($node, 'price_field'); print drupal_render($nodeView);
?>
Any suggestions?
Comments
Are you asking for the
Are you asking for the default currency?
http://api.drupalcommerce.org/api/Drupal%20Commerce/sites!all!modules!co...