Jump to content

Change currency before passing it to paypal


Recommended Posts

hi every one,

i have a store where the default currency is AED (Arab Emirates Dirham), i use Paypal for payment, the problem is that the AED, is not supported by paypal, i got the idea to change the currency to $ before confirming the checkout with the customer.

I have edited the confirm.tpl (paypal module) and i added the following code :


*****Code Begin*****


{if $currency->id != 2}

<script language="JavaScript" type="text/javascript">





****Code End******


the idea is to call the function setCurrency with parameter 2 (dollar id), if it's not the current currency.


the problem is that i got the page refreshed but the currency doesn't change,


Any help is appreciated.


Thank you in advance.

Link to comment
Share on other sites

  • 1 year later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...