New Zenner
- Join Date:
- May 2012
- Location:
- Tijuana, Baja California, Mexico
- Posts:
- 2
- Plugin Contributions:
- 0
Linkpoint accept other currencies
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:
your_shop_path/includes/modules/payment/linkpoint_api.php
And around line 408 right after:
foreach(array('subtotal', 'tax', 'shipping') as $i) {
if (isset($myorder[$i]) && $myorder[$i] == 0) unset($myorder[$i]);
}
put this:
global $currencies;
$myorder['chargetotal'] = number_format($myorder['chargetotal'] * $currencies->get_value('USD'), 2);
and you are good to go.
This is for zen cart v1.5.0
I hope someone finds this useful
zen cart store:
synergyo2.biz