$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
Latest News: (loading..)
Currency conversion
Started by dninja91, Aug 04 2011, 07:34
1 reply to this topic
#1
Posted 04 August 2011, 07:34
#2
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...














