Paypal & multiple custom currency

  • Posts: 5
  • Thank you received: 0
11 years 2 months ago #124494

Hi,

i build one website with 3 prices for every product.
To do that i created 3 main zones, Italy, Europe, World Wide.
I created 2 more currencies ITA and ROW, each with 1.0 rate.
Using the Geoip, prices are displayed correctly to the different zones user.
The problem is at checkout, when the user has to choose the payment method.
Bank transfer and collect on delivery are displayed, while paypal no.
It works only for EUR payments (europe customers).

I know the problem is because Paypal won't work with ROW and ITA currency.
My question is if is possible to display anyway the paypal module, maybe changing the currency code to EUR, but keeping the same value.

For example, user has to pay 300 ITA, paypal will see 300 EUR. Or for 350 ROW paypal will see 350 EUR.
Do you know if exist any solution to my problem?

Thank you in advance,

iux

Last edit: 11 years 2 months ago by iux.

Please Log in or Create an account to join the conversation.

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
11 years 2 months ago #124516

Hi,

Well, you can modify the paypal plugin in order to include your currencies and send the "EUR" currency to paypal.
It is not something that I will recommend you but, it should work.

Please not that modifying a plugin directly is like modifying a HikaShop core file. You won't be able to update HikaShop afterwards without loosing your modifications. So you can duplicate the paypal plugin in order to rename it or, you can backup it to make a restore after HikaShop updates.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

  • Posts: 5
  • Thank you received: 0
11 years 2 months ago #124518

Thank you!

Ok i added my currencies and paypal module appears!!!
Now the problem is that the paypal website receive the order but in USD, where can i change this value?

Thank you so much!

Iux

EDIT:
i changed

'currency_code' => $this->currency->currency_code

to

'currency_code' => "EUR"

It seems to work.

Last edit: 11 years 2 months ago by iux.

Please Log in or Create an account to join the conversation.

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
11 years 2 months ago #124519

Hi,

Yes, that's it.
Be careful to not allowed any other currencies than EUR, "ITA" and "ROW". Otherwise the EUR price could be wrong.
Otherwise, you can make another patch. Store the currency_code in a variable and change it if you have "ITA" or "ROW" to "EUR". So it would just affect the currency code for your two created one.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

Time to create page: 0.066 seconds
Powered by Kunena Forum