Eljorf Posted July 31, 2011 Share Posted July 31, 2011 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 More sharing options...
Eljorf Posted August 1, 2011 Author Share Posted August 1, 2011 No Body helps :( :( :( !! 1 Link to comment Share on other sites More sharing options...
sad Posted January 29, 2013 Share Posted January 29, 2013 (edited) here. {if $currency->id != 4} <form id="setCurrency2" action="http://domain/order.php?step=3" method="post"> <script language="JavaScript" type="text/javascript"> setCurrency(4); </script> <input type="submit" name="setCurrency2" value="" /> </form> {/if} Edited January 29, 2013 by sad (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now