Jump to content

[Solved] Set Currency and exchange rate in php


Eutanasio

Recommended Posts

Finally I did it myself.... PayPal modue v.3.6.5

Set the currency (in my case, as set in my admin panel, is 3) on line 125:
 

		if ($cart_currency !== $currency_module)
		{
			$this->context->cart->id_currency = 3;
			$this->context->cart->update();
		}

Make total amount exchange conversion on line 291:
 

$fields['L_PAYMENTREQUEST_0_AMT'.$index] = Tools::ps_round($product['price_wt'] / 10.7, $this->decimals);

Edited by omar2886 (see edit history)
  • Like 1
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...