HikaShop Paypal payment plugin : change default language when checkout

  • Posts: 5
  • Thank you received: 0
6 years 1 month ago #288591

-- HikaShop version -- : 3.3.0
-- Joomla version -- : 3.8.5
-- PHP version -- : 5.6.33

Hi,

I want to know how we change the default language when we click to proceed checkout by Paypal.
By default, the country is Germany.
I want Switzerland and the language French. How we change that in the plugin.
By default here is the URL in HikaShop Paypal payment plugin : www.paypal.com/cgi-bin/webscr

I want to put <input type="hidden" name="locale.x" value="ch_FR">

Thanks a lot.

Best Regards

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

  • Posts: 81539
  • Thank you received: 13069
  • MODERATOR
6 years 1 month ago #288616

Hi,

Then you can edit the file plugins/hikashoppayment/paypal/paypal_end.php and add it just before:
</form>

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

  • Posts: 5
  • Thank you received: 0
6 years 1 month ago #289745

Hi,

it doesn't works in French Paypal.
I edit paypal_end.php with <input type="hidden" name="locale.x" value="ch_FR"> but always with German.

could you help me ?

thanks a lot

Best Regards

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

  • Posts: 81539
  • Thank you received: 13069
  • MODERATOR
6 years 1 month ago #289746

Hi,

Then it means that PayPal doesn't support that locale.x parameter or that the ch_FR valeur is not valid for PayPal.
Either way, we can't help.
If it's the valeur, then use fr_FR instead. I doubt that the swiss french interface of PayPal is any different than the french french interface.

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

  • Posts: 5
  • Thank you received: 0
6 years 1 month ago #289768

Hi,

already tested with fr_FR. The same issue.

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

  • Posts: 81539
  • Thank you received: 13069
  • MODERATOR
6 years 1 month ago #289773

Hi,

Then, it's probably that the locale.x parameter doesn't exist.
I actually don't know of such parameter.
From what I know, there is a "lc" parameter you can use for that instead.
So you could try instead:
<input type="hidden" name="lc" value="fr">

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

  • Posts: 5
  • Thank you received: 0
6 years 3 weeks ago #290790

Hi,

it doesn't work. I put this always DE et de_DE language when i click to pay on paypal.
Is there another Paypal plugin better ?

thanks.

best regards

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

  • Posts: 5
  • Thank you received: 0
6 years 2 weeks ago #290801

Hi again,

i trie to use Paypal Pro Plugin but it doesn't display. Why ?
My region is Switzerland french part. Thanks.

Best Regards

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

  • Posts: 26004
  • Thank you received: 4004
  • MODERATOR
6 years 2 weeks ago #290792

Hello,

See here for the variables available and what you can put in them for the value: developer.paypal.com/docs/classic/paypal...ndard_htmlvariables/

Also, PayPal Pro is not available for Switzerland so the payment method is disabled automatically. It wouldn't work anyways as PayPal doesn't authorize it.

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.
Last edit: 6 years 2 weeks ago by nicolas.

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

Time to create page: 0.064 seconds
Powered by Kunena Forum