Hi,
I live in Switzerland. I'd like to sell to customers in Europe. My shop has Swiss Francs as Default Currency. Is there a way to add other currencies (like EUR, GBP, ..) BUT JUST INDICATIVE? Because I want the currency for payments in Checkout to be only and always Swiss Francs, but customers should have an idea of prices in their currency.
I'm not very good in English, I hope I was clear of what I mean.
I use v. 1.3.2.
Thanks!
Well, I just need the checkout page to show always the swiss currency, even if the customers had select Eur or GBP from the currency menu (to see the products' prices in their own currency).Customers must always pay in Swiss Francs, because for payments I use bank transfer to a Swiss Francs account and PayPal payment to a PayPal Swiss Francs Account too.
thanks
thanks
You could try switching the currency in /catalog/controller/payment/
like in paypal standard try changing this
to this
remember to backup first...
like in paypal standard try changing this
Code: Select all
// Check for supported currency, otherwise convert to USD.
$currencies = array('AUD','CAD','EUR','GBP','JPY','USD','NZD','CHF','HKD','SGD','SEK','DKK','PLN','NOK','HUF','CZK','ILS','MXN','MYR','BRL','PHP','PLN','TWD','THB');
if (in_array($this->order_info['currency'], $currencies)) {
$currency = $this->order_info['currency'];
} else {
$currency = 'USD';
}
Code: Select all
// Check for supported currency, otherwise convert to USD.
$currencies = array('CHF');
if (in_array($this->order_info['currency'], $currencies)) {
$currency = $this->order_info['currency'];
} else {
$currency = 'CHF';
}
Sorry.. that code will just force the default currency to paypal it wont display it.
in /catalog/model/total
total.php
find
and replace with
This should force the default currency to show in the cart only at the total line, You will need to do this for the rest of the files in the total folder if you want them to show the default currency (sub total, tax, shipping, etc etc).
Any problems, let me know..
in /catalog/model/total
total.php
find
Code: Select all
'text' => $this->currency->format(max(0,$total)),
Code: Select all
'text' => 'CHF ' . max(0,$total),
Any problems, let me know..
that won't work even a little bit, and that is only for display purposes.
Just follow this as it has been done a while back:
http://forum.opencart.com/viewtopic.php ... ncy#p39245
This will always covert the currency to your currency on the confirmation page.
Just follow this as it has been done a while back:
http://forum.opencart.com/viewtopic.php ... ncy#p39245
This will always covert the currency to your currency on the confirmation page.
Qphoria wrote:that won't work even a little bit, and that is only for display purposes.
Just follow this as it has been done a while back:
http://forum.opencart.com/viewtopic.php ... ncy#p39245
This will always covert the currency to your currency on the confirmation page.
It does work..try it..
and as he said it is only for display purposes in the cart.
Thank you to both of you!
I used Qphoria solution, and it worked. I'm sure billy's one would have worked either.
Thank you very much!
I used Qphoria solution, and it worked. I'm sure billy's one would have worked either.
Thank you very much!
I have a similar issue but I'm using opencart 2
I have installed opencart on an arvixe hosting platform. I want to use skrill as the payment gateway and my local currency Sri Lankan Rupee (LKR) is not supported by the payment gateway. So when someone prompt for payment it shows an error message saying invalid currency. How can I avoid this and convert the currency to dollars automatically at the payment gateway. Thanks.
I have installed opencart on an arvixe hosting platform. I want to use skrill as the payment gateway and my local currency Sri Lankan Rupee (LKR) is not supported by the payment gateway. So when someone prompt for payment it shows an error message saying invalid currency. How can I avoid this and convert the currency to dollars automatically at the payment gateway. Thanks.
Who is online
Users browsing this forum: No registered users and 216 guests