Jump to content

Currency + Paypal (Repost)


Eljorf

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">

setCurrency(2);

</script>

{/if}

 

****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 month later...

Hello there,

 

Go to Backoffice --> Preferances--> Performance-->Force compile and make sure Force compile: checked to "YES".

This is for turning on Smarty recompilation of your template, so that you can see the changes done to your template.

 

After finishing your changes switch it to NO, so you will have faster page load.

Link to comment
Share on other sites

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...