Jump to content


Corporate Sponsors


Latest News: (loading..)

Currency conversion


  • You cannot reply to this topic
1 reply to this topic

#1 dninja91

  • Community Member
  • 6 posts
  • Real Name:Norbert Bonnici

Posted 04 August 2011, 07:34

$OSCOM_ShoppingCart->getTotal() gives me a USD value, how can I get the EUR value using osC currency conversion, ie with out hard coding any values

#2 dninja91

  • Community Member
  • 6 posts
  • Real Name:Norbert Bonnici

Posted 04 August 2011, 08:22

Found a solution:

$OSCOM_ShoppingCart = Registry::get('ShoppingCart');
$OSCOM_Currencies = Registry::get('Currencies');

$params = array('TOTAL'        => $OSCOM_ShoppingCart->getTotal() * $OSCOM_Currencies->value($OSCOM_Currencies->getCode()),
// and the code goes on...