I was looking for this onw but didnt find it so i dug into the autorize.net module since that one does the currency conversion (using the currencies previously created in localization admin area) and i found a particularly working piece of code and adapted it to linkpoint variable names so here is what you have to do:
Find your linkpoint payment module in:
And around line 408 right after:HTML Code:your_shop_path/includes/modules/payment/linkpoint_api.php
put this:PHP Code:foreach(array('subtotal', 'tax', 'shipping') as $i) {
if (isset($myorder[$i]) && $myorder[$i] == 0) unset($myorder[$i]);
}
and you are good to go.PHP Code:global $currencies;
$myorder['chargetotal'] = number_format($myorder['chargetotal'] * $currencies->get_value('USD'), 2);
This is for zen cart v1.5.0
I hope someone finds this useful


Reply With Quote
