Mmagento得到订单各种货币下,换算成USD的订单总额
$_sub = order->getGrandTotal();
$orderCurrency = $order->getData('order_currency_code');
$currency_rate = $currency->load('USD')->getAnyRate($orderCurrency);
$amount = $_sub / $currency_rate;
(责任编辑:好模板) |