Forcer Paypal en FR

  • Posts: 2639
  • Thank you received: 66
  • Hikashop Business
11 years 1 month ago #125991

-- HikaShop version -- : 221
-- Joomla version -- : 2514

J'ai Paypal (...../www.paypal.com/cgi-bin/webscr) qui affiche irrégulièrement en FR ou EN alors que la langue du site est uniquement en FR sans choix de changement
Comment puis je forcer paypal en FR ? avec quelle variable ?
dans plugins/hikashoppayment/paypal/paypal.php je trouve

$notify_url = HIKASHOP_LIVE.'index.php?option=com_hikashop&ctrl=checkout&task=notify¬if_payment='.$this->name.'&tmpl=component&lang='.$this->locale . $this->url_itemid;

et plus loin

$lang = JFactory::getLanguage();
$locale = strtolower(substr($lang->get('tag'), 0, 2));




merci

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

  • Posts: 26159
  • Thank you received: 4028
  • MODERATOR
11 years 1 month ago #126011

Bonjour,

L'url de notification est uniquement pour HikaShop, cela n'influs donc pas le comportement de paypal.
Paypal s'occupe lui même de déterminer la langue à afficher.

Cordialement,


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: 2639
  • Thank you received: 66
  • Hikashop Business
11 years 1 month ago #126012

ok merci

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

  • Posts: 2639
  • Thank you received: 66
  • Hikashop Business
11 years 1 month ago #126025

la variable lc et country existe developer.paypal.com/webapps/developer/d...ndard_htmlvariables/

j'ai modifié paypal.php en ajoutant

$vars = array(
'cmd' => '_ext-enter',
'redirect_cmd' => '_cart',
'upload' => '1',
'business' => $this->payment_params->email,
'receiver_email' => $this->payment_params->email,
'invoice' => $order->order_id,
'currency_code' => $this->currency->currency_code,
'return' => $return_url,
'notify_url' => $notify_url,
'cancel_return' => $cancel_url,
'undefined_quantity' => '0',
'test_ipn' => $debug,
'no_shipping' => $this->payment_params->no_shipping,
'no_note' => !@$this->payment_params->notes,
'charset' => 'utf-8',
'rm' => (int)@$this->payment_params->rm,
'bn' => 'HikariSoftware_Cart_WPS',
'lc' => 'FR',
'country' => 'FR'
);


et ça marche
ça serait un plus d'ajouter cette variable dynamique selon la langue de l'utilisateur

Last edit: 11 years 1 month ago by erickb.

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

  • Posts: 26159
  • Thank you received: 4028
  • MODERATOR
11 years 1 month ago #126030

Bonjour,

TODO list mise à jour.

cordialement


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.
The following user(s) said Thank You: erickb

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

  • Posts: 2639
  • Thank you received: 66
  • Hikashop Business
11 years 1 month ago #126036

et n'oublie pas la possibilité d'un paiement diffèré comme sur atos

dans paypal_end.php
<input type="hidden" name="paymentaction" value="authorization" />

et ca marche tres bien

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

Time to create page: 0.072 seconds
Powered by Kunena Forum